mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-11 00:26:08 +00:00
windows: fix mingw build
This commit is contained in:
@@ -10,6 +10,9 @@ set_target_properties(espeak-ng-bin PROPERTIES OUTPUT_NAME espeak-ng)
|
||||
target_link_libraries(
|
||||
espeak-ng-bin PRIVATE espeak-ng espeak-ng-config
|
||||
)
|
||||
if (MINGW)
|
||||
target_link_options(espeak-ng-bin PRIVATE "-static-libstdc++" "-static")
|
||||
endif()
|
||||
if (MSVC)
|
||||
target_sources(espeak-ng-bin PRIVATE compat/getopt.c)
|
||||
endif()
|
||||
|
||||
@@ -108,4 +108,8 @@ if ((MINGW OR WIN32 OR MSVC) AND BUILD_SHARED_LIBS)
|
||||
)
|
||||
endif()
|
||||
|
||||
if (MINGW)
|
||||
target_link_options(espeak-ng PRIVATE "-static-libstdc++" "-static")
|
||||
endif()
|
||||
|
||||
install(TARGETS espeak-ng LIBRARY)
|
||||
|
||||
Reference in New Issue
Block a user