From 63877c0d4bafd60f4a880b4bc351e66257c735c6 Mon Sep 17 00:00:00 2001 From: Armin Date: Fri, 14 Aug 2026 13:28:50 +0200 Subject: [PATCH] disable JUCE libcurl usage on Linux to avoid curl link errors --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) 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"