cmake: Don't link pthread on Windows

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2019-08-07 15:23:54 +02:00
parent ab953c1d51
commit 315dd9df3f

View File

@ -220,7 +220,7 @@ install (TARGETS combine_lang_model RUNTIME DESTINATION bin
########################################
add_executable (lstmeval lstmeval.cpp)
target_link_libraries (lstmeval unicharset_training pthread)
target_link_libraries (lstmeval unicharset_training ${LIB_pthread})
project_group (lstmeval "Training Tools")
install (TARGETS lstmeval RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
@ -230,7 +230,7 @@ install (TARGETS lstmeval RUNTIME DESTINATION bin LIBRARY DE
########################################
add_executable (lstmtraining lstmtraining.cpp)
target_link_libraries (lstmtraining unicharset_training pthread)
target_link_libraries (lstmtraining unicharset_training ${LIB_pthread})
project_group (lstmtraining "Training Tools")
install (TARGETS lstmtraining RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)