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