disable building of tests if Boost::test is not found

This commit is contained in:
Arne Morten Kvarving 2020-02-19 12:28:55 +01:00
parent ff3c634924
commit 8e8d187805

View File

@ -132,7 +132,7 @@ opm_add_test(test_gatherconvergencereport
SOURCES SOURCES
tests/test_gatherconvergencereport.cpp tests/test_gatherconvergencereport.cpp
CONDITION CONDITION
MPI_FOUND MPI_FOUND AND Boost_UNIT_TEST_FRAMEWORK_FOUND
DRIVER_ARGS DRIVER_ARGS
5 ${CMAKE_BINARY_DIR} 5 ${CMAKE_BINARY_DIR}
) )
@ -143,7 +143,7 @@ opm_add_test(test_gatherdeferredlogger
SOURCES SOURCES
tests/test_gatherdeferredlogger.cpp tests/test_gatherdeferredlogger.cpp
CONDITION CONDITION
MPI_FOUND MPI_FOUND AND Boost_UNIT_TEST_FRAMEWORK_FOUND
DRIVER_ARGS DRIVER_ARGS
5 ${CMAKE_BINARY_DIR} 5 ${CMAKE_BINARY_DIR}
) )