]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: for CMake 3.30 onwards set Boost Config policy to true
authorMatthias Maier <tamiko@43-1.org>
Tue, 23 Jul 2024 16:38:32 +0000 (11:38 -0500)
committerMatthias Maier <tamiko@43-1.org>
Fri, 31 Jan 2025 15:58:02 +0000 (09:58 -0600)
CMakeLists.txt

index 1e74da92e5e6690ccef671d9a83e32a21beb2a34..d63d928834284501fb87a5b3485c13d83d9adcf8 100644 (file)
@@ -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/)
 
 #

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.