diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 5bd4cee5..5ac638d3 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -112,6 +112,8 @@ swig_add_library(vosk TYPE SHARED LANGUAGE Python OUTPUT_DIR "${CMAKE_LIBRARY_OU swig_link_libraries(vosk ${VOSK_LIBRARIES}) -set_target_properties(_vosk PROPERTIES LINK_FLAGS_RELEASE -s) +if(NOT MSVC) + set_target_properties(_vosk PROPERTIES LINK_FLAGS_RELEASE -s) +endif() file(INSTALL ${ADDITIONAL_LIBRARIES} DESTINATION ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})