From: Matthias Maier Date: Tue, 23 Jul 2024 16:38:32 +0000 (-0500) Subject: CMake: for CMake 3.30 onwards set Boost Config policy to true X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7fec25a527d3945dc14b41908bee4b41b7f5bae;p=dealii.git CMake: for CMake 3.30 onwards set Boost Config policy to true --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e74da92e5..d63d928834 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,13 @@ if(POLICY CMP0075) cmake_policy(SET CMP0075 NEW) endif() +if(POLICY CMP0167) + # Introduced in CMake 3.30: When set to true then CMake uses the Boost + # CMake Config installed with Boost instead of using the FindBoost.cmake + # module installed with CMake. + cmake_policy(SET CMP0167 NEW) +endif() + list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/) #