mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 05:57:55 +08:00
c99dc50be9
* [vcpkg baseline][wxwidgets] Fix build error * [mlpack] Fix configure error (upstream bug) * [vcpkg baseline] [embree2/embree3] Set cmake policy * Remove control file * Update baseline version * [mlpack] Re-write the dependency * [mlpack] Remove dependency boost-test since only feature test need it, add more boost dependencies. * [mlpack] Add dependency boost-heap * [mlpack] Fix uwp build * update version record * [mlpack] Revert uwp fix * update version record * [mlpack] Remove dependency boost-test * update version record * update baseline * [clamav] Update hash * update version record Co-authored-by: PhoebeHui <20694052+PhoebeHui@users.noreply.github.com>
25 lines
516 B
Diff
25 lines
516 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index b59555c..4dd92f0 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -441,11 +441,18 @@ set(Boost_ADDITIONAL_VERSIONS
|
|
set(Boost_NO_BOOST_CMAKE 1)
|
|
find_package(Boost "${BOOST_VERSION}"
|
|
COMPONENTS
|
|
- unit_test_framework
|
|
serialization
|
|
REQUIRED
|
|
)
|
|
|
|
+if (BUILD_TESTS)
|
|
+ find_package(Boost "${BOOST_VERSION}"
|
|
+ COMPONENTS
|
|
+ unit_test_framework
|
|
+ REQUIRED
|
|
+ )
|
|
+endif()
|
|
+
|
|
if(0)
|
|
link_directories(${Boost_LIBRARY_DIRS})
|
|
|