mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Add deprecation warnings for policies CMP0097 and below
The OLD behaviors of all policies are deprecated, but only by documentation. Add an explicit deprecation diagnostic for policies introduced in CMake 3.16 and below to encourage projects to port away from setting policies to OLD.
This commit is contained in:
@@ -444,7 +444,9 @@ if(do_git_tests)
|
||||
set_property(TARGET ${proj} PROPERTY FOLDER "GIT")
|
||||
|
||||
set(proj TS1-GIT-all-GIT_SUBMODULES-via-CMP0097-OLD)
|
||||
set(CMAKE_WARN_DEPRECATED FALSE) # we are testing CMP0097 OLD behavior
|
||||
cmake_policy(SET CMP0097 OLD)
|
||||
unset(CMAKE_WARN_DEPRECATED)
|
||||
ExternalProject_Add(${proj}
|
||||
GIT_REPOSITORY "${local_git_repo}"
|
||||
GIT_SUBMODULES ""
|
||||
|
||||
Reference in New Issue
Block a user