Skip to content

Commit

Permalink
Properly check CMake WIN32 variable
Browse files Browse the repository at this point in the history
Didn't cause problems with the Mac CI build, curiously, but I think HFS+ is case-insensitive by default? Something like that.
  • Loading branch information
ItEndsWithTens committed Jul 14, 2020
1 parent f2761ef commit 45f6065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ set_target_properties(
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/artifacts/build/lib
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/artifacts/build/lib
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/artifacts/build/lib
OUTPUT_NAME $<IF:$<BOOL:WIN32>,TurnsTile,turnstile>
OUTPUT_NAME $<IF:$<BOOL:${WIN32}>,TurnsTile,turnstile>
)


Expand Down Expand Up @@ -242,7 +242,7 @@ if(TURNSTILE_TESTS)
TurnsTile-test
PROPERTIES
COMPILE_DEFINITIONS "TURNSTILE_HOST_${TURNSTILE_HOST_DEFINE}"
OUTPUT_NAME $<IF:$<BOOL:WIN32>,TurnsTile-test,turnstile-test>
OUTPUT_NAME $<IF:$<BOOL:${WIN32}>,TurnsTile-test,turnstile-test>
)

if(NOT WIN32)
Expand Down

0 comments on commit 45f6065

Please sign in to comment.