File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ endif()
19
19
20
20
find_package (CFitsIO REQUIRED )
21
21
22
- cmake_policy (SET CMP0167 OLD )
22
+ if (CMAKE_VERSION VERSION_GREATER "3.29.0" )
23
+ cmake_policy (SET CMP0167 NEW )
24
+ endif ()
23
25
find_package (Boost COMPONENTS system filesystem REQUIRED )
24
26
25
27
find_package (yaml-cpp REQUIRED )
@@ -50,7 +52,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
50
52
endif ()
51
53
52
54
if (docs )
53
- cmake_policy (SET CMP0057 NEW )
55
+ if (CMAKE_VERSION VERSION_GREATER "3.3.0" )
56
+ cmake_policy (SET CMP0057 NEW )
57
+ endif ()
54
58
find_package (Doxygen REQUIRED dot )
55
59
endif ()
56
60
@@ -75,7 +79,9 @@ endif()
75
79
76
80
# Always find open-mp, since it may be used by sopt
77
81
if (openmp )
78
- cmake_policy (SET CMP0074 NEW )
82
+ if (CMAKE_VERSION VERSION_GREATER "3.12.0" )
83
+ cmake_policy (SET CMP0074 NEW )
84
+ endif ()
79
85
find_package (OpenMP )
80
86
if (OPENMP_FOUND )
81
87
# Set PURIFY_OPENMP to TRUE when OpenMP is both found and requested
You can’t perform that action at this time.
0 commit comments