mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 23:50:25 +08:00
120f81c4d4
* [kenlm] Update port * x-add-version * remove unused patches * Overwrite version * Use imported targets for Boost to fix build issue on Windows * Update ports/kenlm/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update version * Update versions/k-/kenlm.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> --------- Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
diff --git a/util/CMakeLists.txt b/util/CMakeLists.txt
|
|
index 7a96ef5..0708d8a 100644
|
|
--- a/util/CMakeLists.txt
|
|
+++ b/util/CMakeLists.txt
|
|
@@ -85,7 +85,10 @@ set_target_properties(kenlm_util PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
target_link_libraries(kenlm_util
|
|
PUBLIC
|
|
# Boost is required for building binaries and tests
|
|
- "$<BUILD_INTERFACE:${Boost_LIBRARIES}>"
|
|
+ $<BUILD_INTERFACE:Boost::program_options>
|
|
+ $<BUILD_INTERFACE:Boost::system>
|
|
+ $<BUILD_INTERFACE:Boost::thread>
|
|
+ $<BUILD_INTERFACE:Boost::unit_test_framework>
|
|
PRIVATE
|
|
Threads::Threads
|
|
${RT})
|
|
diff --git a/util/stream/CMakeLists.txt b/util/stream/CMakeLists.txt
|
|
index be2fe00..a7e7df5 100644
|
|
--- a/util/stream/CMakeLists.txt
|
|
+++ b/util/stream/CMakeLists.txt
|
|
@@ -35,5 +35,11 @@ if(BUILD_TESTING)
|
|
)
|
|
|
|
AddTests(TESTS ${KENLM_BOOST_TESTS_LIST}
|
|
- LIBRARIES kenlm_util ${Boost_LIBRARIES} Threads::Threads)
|
|
+ LIBRARIES
|
|
+ kenlm_util
|
|
+ Boost::program_options
|
|
+ Boost::system
|
|
+ Boost::thread
|
|
+ Boost::unit_test_framework
|
|
+ Threads::Threads)
|
|
endif()
|