summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2021-01-21 10:02:17 +1100
committerBrad King <brad.king@kitware.com>2021-01-28 09:32:35 -0500
commit17c4c8b92b63b8ce920dd7db38bab4a772990cce (patch)
treeb70df6b5ae7111deda381bd8562a7fcfdf35091f /Tests
parent1cb65e680d11ab705d737ecd96f7ebea853ca668 (diff)
downloadcmake-17c4c8b92b63b8ce920dd7db38bab4a772990cce.tar.gz
Tests: Prevent the noisy CMP0114 warnings in ExternalProjectUpdate test
Diffstat (limited to 'Tests')
-rw-r--r--Tests/ExternalProjectUpdate/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/ExternalProjectUpdate/CMakeLists.txt b/Tests/ExternalProjectUpdate/CMakeLists.txt
index b31a38b235..6f8a7b15bc 100644
--- a/Tests/ExternalProjectUpdate/CMakeLists.txt
+++ b/Tests/ExternalProjectUpdate/CMakeLists.txt
@@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8.12)
project(ExternalProjectUpdateTest NONE)
if(CMAKE_XCODE_BUILD_SYSTEM VERSION_GREATER_EQUAL 12)
cmake_policy(SET CMP0114 NEW)
+else()
+ # This test is very noisy with warnings about this policy if we don't
+ # explicitly set it. Projects shouldn't do this, but for test code this
+ # is reasonable.
+ cmake_policy(SET CMP0114 OLD)
endif()
cmake_policy(GET CMP0114 cmp0114)