CMake: Only unices have the strip command

Fixes the build on MinGW
This commit is contained in:
Julien Schueller
2020-03-21 17:25:46 +01:00
committed by GitHub
parent ed9f92e9a7
commit b474b3d16e

View File

@@ -86,7 +86,7 @@ endif()
install(TARGETS basisu DESTINATION bin)
if (NOT MSVC)
if (UNIX)
if (CMAKE_BUILD_TYPE STREQUAL Release)
if (APPLE)
add_custom_command(TARGET basisu POST_BUILD COMMAND strip -X -x ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/basisu)