From e4bb79e521fbdb3f4925ee494c83a7210c88a4a2 Mon Sep 17 00:00:00 2001 From: Mike Thierman Date: Fri, 27 Sep 2024 04:28:13 -0600 Subject: [PATCH] Windows standalone: Fix NOMINMAX (#313) --- cmake/wrap_standalone.cmake | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmake/wrap_standalone.cmake b/cmake/wrap_standalone.cmake index 60d5547b..03ec300f 100644 --- a/cmake/wrap_standalone.cmake +++ b/cmake/wrap_standalone.cmake @@ -120,15 +120,13 @@ function(target_add_standalone_wrapper) target_compile_definitions(${salib} PUBLIC CLAP_WRAPPER_HAS_WIN32 - ) - - target_compile_definitions(${SA_TARGET} PRIVATE UNICODE NOMINMAX ) set_target_properties(${SA_TARGET} PROPERTIES WIN32_EXECUTABLE TRUE + OUTPUT_NAME ${SA_OUTPUT_NAME} ) if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") @@ -151,8 +149,6 @@ 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)