diff --git a/CMakeLists.txt b/CMakeLists.txt index 34643b9..12c2fb4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,10 +80,10 @@ if(CMAKE_THREAD_LIBS_INIT) target_link_libraries(minisign "${CMAKE_THREAD_LIBS_INIT}") endif(CMAKE_THREAD_LIBS_INIT) -if (COMMAND CMAKE_STRIP) +if (NOT MSVC AND CMAKE_STRIP) add_custom_command(TARGET minisign POST_BUILD COMMAND ${CMAKE_STRIP} ${STRIP_FLAGS} $) -endif(COMMAND CMAKE_STRIP) +endif(NOT MSVC AND CMAKE_STRIP) install(TARGETS minisign DESTINATION bin)