1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Tests: Fix policy version in RunCMake.ExternalProject test

Now that we have policies that need to be tested, this test cannot
just use CMAKE_VERSION for the policy level.
This commit is contained in:
Brad King
2020-10-08 11:58:06 -04:00
parent 302b00a262
commit 62e73a7d10

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION ${CMAKE_VERSION})
cmake_minimum_required(VERSION 3.18)
project(${RunCMake_TEST} NONE)
if(CMAKE_XCODE_BUILD_SYSTEM VERSION_GREATER_EQUAL 12 AND NOT RunCMake_TEST STREQUAL "Xcode-CMP0114")
cmake_policy(SET CMP0114 NEW)