Skip to content

Commit f6cd1d7

Browse files
committed
Guard cmake_policy
1 parent ea45418 commit f6cd1d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ target_include_directories(boost_mp11 ${__scope} include)
3535
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
3636

3737
# Required to call deprecated FetchContent_Populate
38-
cmake_policy(SET CMP0169 OLD)
38+
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.30.0")
39+
cmake_policy(SET CMP0169 OLD)
40+
endif()
3941

4042
# Fetch support files
4143

0 commit comments

Comments
 (0)