diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a67f4e..697ed74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,13 @@ target_link_libraries(BEAMGRID PRIVATE juce::juce_gui_extra ) +# This plugin does not use any networking, so disable JUCE's libcurl usage on +# Linux. Otherwise the build fails to link with undefined references to the +# curl_* symbols (see CURLSymbols in juce_core.cpp). +if(UNIX AND NOT APPLE) + target_compile_definitions(BEAMGRID PUBLIC JUCE_USE_CURL=0) +endif() + if(APPLE) set_target_properties(BEAMGRID PROPERTIES CMAKE_OSX_DEPLOYMENT_TARGET "10.15"