From 2a09dd36d1d5cd23c7cd1dd875cd0112af7cabdb Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Thu, 27 Feb 2020 21:28:22 +0100 Subject: [PATCH] Static linking for MinGW with properties --- lv2/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lv2/CMakeLists.txt b/lv2/CMakeLists.txt index e3683f77..2067fb17 100644 --- a/lv2/CMakeLists.txt +++ b/lv2/CMakeLists.txt @@ -23,7 +23,7 @@ endif() target_include_directories(${LV2PLUGIN_PRJ_NAME} PRIVATE . external/ardour) sfizz_enable_lto_if_needed (${LV2PLUGIN_PRJ_NAME}) if (MINGW) - target_link_options (${LV2PLUGIN_PRJ_NAME} PRIVATE "-static") + set_target_properties (${LV2PLUGIN_PRJ_NAME} PROPERTIES LINK_FLAGS "-static") endif() # Remove the "lib" prefix, rename the target name and build it in the .lv build dir