Skip to content

Commit

Permalink
Windows standalone: Fix NOMINMAX (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthierman authored Sep 27, 2024
1 parent b3d017f commit e4bb79e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmake/wrap_standalone.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)
Expand Down

0 comments on commit e4bb79e

Please sign in to comment.