Skip to content

Commit 097f4bd

Browse files
committed
Avoid warning about CMP0167
1 parent c59e3cf commit 097f4bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/modules/3rdParty.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ if (DEFINED THIRD_PARTY_MODULE_LOADED)
66
endif ()
77
set(THIRD_PARTY_MODULE_LOADED YES)
88

9+
# prefer upstream find module of Boost
10+
cmake_policy(SET CMP0167 NEW)
11+
912
cmake_policy(SET CMP0067 NEW) # make check_cxx_source_compiles() pick up the variables for the C++ version
1013
include(CheckCXXSourceCompiles)
1114

0 commit comments

Comments
 (0)