From 482d5c3cbdc98aa414e946f1b2af56713d979c4c Mon Sep 17 00:00:00 2001 From: Armin Date: Sat, 15 Aug 2026 12:28:58 +0200 Subject: [PATCH] fix some possible compilation errors on macOS arm64 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d67751..489ea3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,11 @@ target_link_libraries(Mindball PRIVATE # migration warning is irrelevant. target_compile_definitions(Mindball PRIVATE JUCE_IGNORE_VST3_MISMATCHED_PARAMETER_ID_WARNING) +# JUCE 8 defaults JUCE_VST3_CAN_REPLACE_VST2 to 1, which compiles VST2-style +# class IDs into the plugin while the generated moduleinfo.json uses the modern +# IDs, so hosts cannot match the class and fail to load the plugin. +target_compile_definitions(Mindball PRIVATE JUCE_VST3_CAN_REPLACE_VST2=0) + # juce_core enables libcurl by default on Linux; without NEEDS_CURL the JUCE # helper targets don't link -lcurl, so that would fail at link time with # undefined references to curl_easy_setopt. We use no network features, so