From 2b1120f0be90dbbbd17a68e16201f9a46c5469a8 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 21 Sep 2024 09:56:16 -0400 Subject: [PATCH] Set the OUTPUT_NAME on the win/lin standalone (#309) the standalone wrapper has an OUTPUT_NAME argument which mac uses to name the bundle. Win/Lin ignored this for the exe which meant the short circuit assembly failed for our release build. Apply the OUTPUT_NAME properly using the default or the argument on those platforms. --- cmake/wrap_standalone.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/wrap_standalone.cmake b/cmake/wrap_standalone.cmake index f4c3a170..0dab3b34 100644 --- a/cmake/wrap_standalone.cmake +++ b/cmake/wrap_standalone.cmake @@ -150,6 +150,8 @@ function(target_add_standalone_wrapper) target_link_libraries(${SA_TARGET} PRIVATE base-sdk-wil ComCtl32.Lib) + set_target_properties(${SA_TARGET} PROPERTIES OUTPUT_NAME ${SA_OUTPUT_NAME}) + elseif(UNIX) target_sources(${SA_TARGET} PRIVATE ${CLAP_WRAPPER_CMAKE_CURRENT_SOURCE_DIR}/src/wrapasstandalone.cpp) @@ -167,6 +169,8 @@ function(target_add_standalone_wrapper) message(STATUS "clap-wrapper: can't find gtkmm-3.0; no ui in standalone") endif() + set_target_properties(${SA_TARGET} PROPERTIES OUTPUT_NAME ${SA_OUTPUT_NAME}) + else() target_sources(${SA_TARGET} PRIVATE ${CLAP_WRAPPER_CMAKE_CURRENT_SOURCE_DIR}/src/wrapasstandalone.cpp)