Skip to content

Commit

Permalink
Fix windows install behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Aug 30, 2021
1 parent 7917ef4 commit d5b9e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT "

# Strip binary for release builds
if (CMAKE_BUILD_TYPE STREQUAL Release)
if(LINUX OR MSVC)
if(LINUX)
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_STRIP} ${CMAKE_BUILD_TYPE}/${PROJECT_NAME})
elseif(APPLE)
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_STRIP} ${CMAKE_BUILD_TYPE}/${PROJECT_NAME}.app/Contents/MacOS/${PROJECT_NAME})
Expand Down

0 comments on commit d5b9e3f

Please sign in to comment.