disable JUCE libcurl usage on Linux to avoid curl link errors

This commit is contained in:
Armin 2026-08-14 13:28:50 +02:00
commit 63877c0d4b

View file

@ -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"