changed: disable building of test suite if Boost::test is not found

This commit is contained in:
Arne Morten Kvarving
2020-02-19 12:24:53 +01:00
parent ec1dabf80e
commit f76daabbb4
3 changed files with 12 additions and 4 deletions

View File

@@ -56,6 +56,9 @@ macro (opm_compile_satellites opm satellite excl_all test_regexp)
# compile each of these separately
foreach (_sat_FILE IN LISTS ${satellite}_SOURCES)
if (NOT "${test_regexp}" STREQUAL "" AND NOT Boost_UNIT_TEST_FRAMEWORK_FOUND)
continue()
endif()
get_filename_component (_sat_NAME "${_sat_FILE}" NAME_WE)
add_executable (${_sat_NAME} ${excl_all} ${_sat_FILE})
add_dependencies (${satellite} ${_sat_NAME})