summaryrefslogtreecommitdiffstats
path: root/Tests/ExternalProject/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-04 13:24:20 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-04 13:24:26 (GMT)
commitf84dcbd496ad6abb1491b621142e2c222f23c11c (patch)
tree7bcb39db53d4313301815deb298366a54cbb3192 /Tests/ExternalProject/CMakeLists.txt
parent57692659c677a9301af9b15657ccd56c65001c14 (diff)
parent9a48012f93376cefe94f1e61260ebbb1e1c2fed6 (diff)
downloadCMake-f84dcbd496ad6abb1491b621142e2c222f23c11c.zip
CMake-f84dcbd496ad6abb1491b621142e2c222f23c11c.tar.gz
CMake-f84dcbd496ad6abb1491b621142e2c222f23c11c.tar.bz2
Merge topic 'post-rel-dev'
9a48012f93 Configure CMake itself with policies through CMake 3.22 a5a9687799 export: Increase maximum policy version in exported files to 3.22 a9ffded98c Add deprecation warnings for policies CMP0097 and below Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !6948
Diffstat (limited to 'Tests/ExternalProject/CMakeLists.txt')
-rw-r--r--Tests/ExternalProject/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/ExternalProject/CMakeLists.txt b/Tests/ExternalProject/CMakeLists.txt
index 59e3bcc..8a85045 100644
--- a/Tests/ExternalProject/CMakeLists.txt
+++ b/Tests/ExternalProject/CMakeLists.txt
@@ -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 ""