File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ function(get_ctags)
6
6
7
7
# Prevent warnings in CMake>=3.24 regarding ExternalProject_Add()
8
8
# cf. https://cmake.org/cmake/help/latest/policy/CMP0135.html
9
- cmake_policy (SET CMP0135 OLD )
9
+ if (POLICY CMP0135 )
10
+ cmake_policy (SET CMP0135 OLD )
11
+ endif ()
10
12
11
13
cmake_host_system_information (
12
14
RESULT HOSTINFO
Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ function(declare_deps CORE_VERSION)
61
61
62
62
# Prevent warnings in CMake>=3.24 regarding ExternalProject_Add()
63
63
# cf. https://cmake.org/cmake/help/latest/policy/CMP0135.html
64
- cmake_policy (SET CMP0135 OLD )
64
+ if (POLICY CMP0135 )
65
+ cmake_policy (SET CMP0135 OLD )
66
+ endif ()
65
67
66
68
file (REAL_PATH "${DL_DIR} /package_stmicroelectronics_index.json" JSONFILE )
67
69
if (NOT EXISTS ${JSONFILE} )
You can’t perform that action at this time.
0 commit comments