Skip to content

Commit

Permalink
Set the OUTPUT_NAME on the win/lin standalone (#309)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
baconpaul authored Sep 21, 2024
1 parent bdd7b86 commit 2b1120f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/wrap_standalone.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 2b1120f

Please sign in to comment.