Boost: make sure to use config mode where appropriate

no need to look for unit_test_framework for the main module
This commit is contained in:
Arne Morten Kvarving
2026-02-03 14:59:21 +01:00
parent 18f6935e12
commit 5d7bb3a0f7
+6 -2
View File
@@ -4,12 +4,16 @@ set (opm-upscaling_CONFIG_VAR
HAVE_OPENMP
)
# CMake 3.30.0 requires to find Boost in CONFIG mode
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.30.0)
set(_Boost_CONFIG_MODE CONFIG)
endif()
# dependencies
set (opm-upscaling_DEPS
# various runtime library enhancements
"Boost 1.44.0
COMPONENTS date_time unit_test_framework REQUIRED"
"Boost 1.44.0 COMPONENTS iostreams"
COMPONENTS date_time iostreams REQUIRED ${_Boost_CONFIG_MODE}"
# matrix library
"BLAS REQUIRED"
"LAPACK REQUIRED"