diff --git a/opm-upscaling-prereqs.cmake b/opm-upscaling-prereqs.cmake index 527324e..02f9683 100644 --- a/opm-upscaling-prereqs.cmake +++ b/opm-upscaling-prereqs.cmake @@ -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"