Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kpu/kenlm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Zou <xantares09@hotmail.com>2020-05-13 12:53:58 +0300
committerMichel Zou <xantares09@hotmail.com>2020-05-13 12:53:58 +0300
commitdf2d717e95183f79a90b2fa6e4307083a351ca6a (patch)
treed849aec44b70f7e050444d6449a6908461c9e7ed
parent5239f2ece2656544976f612a5b57b796d9dd0fc5 (diff)
Fix linking on windows
-rw-r--r--lm/filter/CMakeLists.txt3
-rw-r--r--lm/interpolate/CMakeLists.txt3
2 files changed, 4 insertions, 2 deletions
diff --git a/lm/filter/CMakeLists.txt b/lm/filter/CMakeLists.txt
index 7e5f2d1..9fd06a9 100644
--- a/lm/filter/CMakeLists.txt
+++ b/lm/filter/CMakeLists.txt
@@ -23,11 +23,12 @@ set(KENLM_FILTER_SOURCE
# refer to these objects as $<TARGET_OBJECTS:foo>
#
add_library(kenlm_filter ${KENLM_FILTER_SOURCE})
+target_link_libraries(kenlm_filter kenlm_util)
if (NOT MSVC)
set(THREADS pthread)
endif()
AddExes(EXES filter phrase_table_vocab
- LIBRARIES kenlm_filter kenlm kenlm_util ${Boost_LIBRARIES} ${THREADS})
+ LIBRARIES kenlm_filter kenlm)
diff --git a/lm/interpolate/CMakeLists.txt b/lm/interpolate/CMakeLists.txt
index 6a61786..eda7641 100644
--- a/lm/interpolate/CMakeLists.txt
+++ b/lm/interpolate/CMakeLists.txt
@@ -26,6 +26,7 @@ if(EIGEN3_FOUND)
endif()
add_library(kenlm_interpolate ${KENLM_INTERPOLATE_SOURCE})
+ target_link_libraries(kenlm_interpolate kenlm)
set(KENLM_INTERPOLATE_EXES
interpolate
@@ -36,7 +37,7 @@ if(EIGEN3_FOUND)
endif()
set(KENLM_INTERPOLATE_LIBS
- kenlm_interpolate kenlm kenlm_util ${Boost_LIBRARIES} ${THREADS})
+ kenlm_interpolate)
AddExes(EXES ${KENLM_INTERPOLATE_EXES}
LIBRARIES ${KENLM_INTERPOLATE_LIBS})