Skip to content

Commit a9dd162

Browse files
committed
cmake: Set policy CMP0167 to avoid warnings with CMake 3.30
1 parent bbc26ed commit a9dd162

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
@@ -68,6 +68,11 @@ option(SUFFIX_SO_VERSION "Suffix library name with its version" OFF)
6868
option(BUILD_TESTING_SCIPY
6969
"Build the SciPy tests (scipy should be installed on the machine)" ON)
7070

71+
# Use BoostConfig module distributed by boost library instead of using FindBoost
72+
# module distributed by CMake
73+
if(POLICY CMP0167)
74+
cmake_policy(SET CMP0167 NEW)
75+
endif()
7176
include("${JRL_CMAKE_MODULES}/base.cmake")
7277
compute_project_args(PROJECT_ARGS LANGUAGES CXX)
7378
project(${PROJECT_NAME} ${PROJECT_ARGS})

0 commit comments

Comments
 (0)