early-access version 2853
This commit is contained in:
24
externals/vcpkg/ports/mlpack/fix-test-dependency.patch
vendored
Executable file
24
externals/vcpkg/ports/mlpack/fix-test-dependency.patch
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
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})
|
||||
|
||||
Reference in New Issue
Block a user