Static linking for MinGW with properties

This commit is contained in:
Jean Pierre Cimalando 2020-02-27 21:28:22 +01:00
parent 814020a244
commit 2a09dd36d1

View file

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