File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,28 @@ endif()
61
61
set (DOXYGEN_USE_MATHJAX YES )
62
62
set (DOXYGEN_USE_TEMPLATE_CSS YES )
63
63
64
+ # ----------------------------------------------------
65
+ # --- Policy -----------------------------------------
66
+ # CMake Policy setup
67
+ # ----------------------------------------------------
68
+ # Policy can be removed when cmake_minimum_required is updated.
69
+
70
+ # We also set CMAKE_POLICY_DEFAULT_CMPXXXX because CMake modules can reset policy and redefine some
71
+ # macros like `find_dependency` that will not use our policy.
72
+
64
73
# Use BoostConfig module distributed by boost library instead of using FindBoost module distributed
65
- # by CMake
74
+ # by CMake (to remove in 3.30). This policy is not working when using clang-cl.
66
75
if (NOT WIN32 OR NOT ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" )
67
76
if (POLICY CMP0167 )
68
77
cmake_policy (SET CMP0167 NEW )
78
+ set (CMAKE_POLICY_DEFAULT_CMP0167 NEW )
69
79
endif ()
70
80
endif ()
81
+ # install() DESTINATION paths are normalized (to remove in 3.31).
82
+ if (POLICY CMP0177 )
83
+ cmake_policy (SET CMP0177 NEW )
84
+ set (CMAKE_POLICY_DEFAULT_CMP0177 NEW )
85
+ endif ()
71
86
include ("${JRL_CMAKE_MODULES} /base.cmake" )
72
87
73
88
compute_project_args (PROJECT_ARGS LANGUAGES CXX )
You can’t perform that action at this time.
0 commit comments