Skip to content

Commit d7fec25

Browse files
committed
CMake: for CMake 3.30 onwards set Boost Config policy to true
1 parent 69a5e48 commit d7fec25

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ if(POLICY CMP0075)
5151
cmake_policy(SET CMP0075 NEW)
5252
endif()
5353

54+
if(POLICY CMP0167)
55+
# Introduced in CMake 3.30: When set to true then CMake uses the Boost
56+
# CMake Config installed with Boost instead of using the FindBoost.cmake
57+
# module installed with CMake.
58+
cmake_policy(SET CMP0167 NEW)
59+
endif()
60+
5461
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
5562

5663
#

0 commit comments

Comments
 (0)