spack/var/spack/repos/builtin/packages/cereal/Boost2.patch
2017-03-20 15:05:02 -05:00

11 lines
373 B
Diff

--- old/unittests/CMakeLists.txt
+++ new/unittests/CMakeLists.txt
@@ -1,4 +1,7 @@
file(GLOB TESTS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
+if(NOT Boost_FOUND)
+ list(REMOVE_ITEM TESTS boost_variant.cpp)
+endif(Boost_FOUND)
# A semi-colon separated list of test sources that should not be automatically built with doctest
set(SPECIAL_TESTS "portability_test.cpp")