Skip to content

Commit

Permalink
fix windows release build
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Oct 27, 2017
1 parent 9f62018 commit 888a228
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,12 @@ target_link_libraries(taisei ${LIBs})

set(MACOSX_BUNDLE_BUNDLE_NAME "Taisei")

if(WIN32)
set(TAISEI_BINARY_SUFFIX ".exe")
else()
set(TAISEI_BINARY_SUFFIX "")
endif()

if(APPLE)
set_target_properties(taisei PROPERTIES
OUTPUT_NAME "${MACOSX_BUNDLE_BUNDLE_NAME}"
Expand Down Expand Up @@ -330,6 +336,8 @@ else()
set(TAISEI_BINARY "bin/taisei")
endif()

set(TAISEI_BINARY "${TAISEI_BINARY}${TAISEI_BINARY_SUFFIX}")

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" AND NOT APPLE)
configure_file(
"${BUILDSCRIPTS_DIR}/PostInstallRelease.cmake.in"
Expand Down

0 comments on commit 888a228

Please sign in to comment.