Skip to content

Commit de622b6

Browse files
committed
cmake policy for Boost
1 parent af73cb3 commit de622b6

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
@@ -42,6 +42,11 @@ include(GenerateExportHeader)
4242
include(CTest)
4343
include(FetchContent)
4444

45+
# FindBoost, take care of it now.
46+
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.30)
47+
cmake_policy(SET CMP0167 NEW)
48+
endif()
49+
4550
# When building with ninja-multiconfig, build both debug and release by default
4651
if(CMAKE_GENERATOR STREQUAL "Ninja Multi-Config")
4752
set(CMAKE_CROSS_CONFIGS "Debug;Release")

0 commit comments

Comments
 (0)