Skip to content

Commit

Permalink
fix warning LNK4044: unrecognized option '/s'
Browse files Browse the repository at this point in the history
Microsoft's "link.exe" doesn't understand this option.
https://docs.microsoft.com/en-us/cpp/build/reference/linker-options?view=vs-2017
  • Loading branch information
dtreskunov committed Feb 17, 2020
1 parent 93eed10 commit 0ccdc2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit 0ccdc2c

Please sign in to comment.