Skip to content

Commit c0831b7

Browse files
committed
fix(cmake): opt-in to CMP0167 BoostConfig.cmake policy in 3.30
1 parent 1c77733 commit c0831b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
cmake_minimum_required(VERSION 3.28)
55

6+
if(POLICY CMP0167)
7+
# Prefer the upstream BoostConfig.cmake file instead of the builtin FindBoost module: https://cmake.org/cmake/help/latest/policy/CMP0167.html
8+
cmake_policy(SET CMP0167 NEW)
9+
endif()
10+
611
# Export compile commands for other tools, e.g. SonarLint.
712
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
813

0 commit comments

Comments
 (0)