mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-20 21:40:15 +08:00
Tests: Use latest cmake_minimum_required possible for old policy cases
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Using 2.8 will trigger a deprecation warning. In this case it's explicitly
|
# Using 2.8 will trigger a deprecation warning. In this case it's explicitly
|
||||||
# intentional since the tests checks various policy implementations prior to
|
# intentional since the tests checks various policy implementations prior to
|
||||||
# 3.10
|
# 3.10
|
||||||
cmake_minimum_required(VERSION 2.8.10) # old enough to not set CMP0022
|
cmake_minimum_required(VERSION 2.8.11) # old enough to not set CMP0022
|
||||||
|
|
||||||
if(POLICY CMP0129)
|
if(POLICY CMP0129)
|
||||||
cmake_policy(SET CMP0129 NEW)
|
cmake_policy(SET CMP0129 NEW)
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
cmake_minimum_required(VERSION 2.8.4)
|
cmake_minimum_required(VERSION 2.8.10)
|
||||||
project(${RunCMake_TEST} NONE)
|
project(${RunCMake_TEST} NONE)
|
||||||
include(${RunCMake_TEST}.cmake NO_POLICY_SCOPE)
|
include(${RunCMake_TEST}.cmake NO_POLICY_SCOPE)
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
if(RunCMake_TEST STREQUAL "CMP0044-WARN")
|
if(RunCMake_TEST STREQUAL "CMP0044-WARN")
|
||||||
cmake_policy(VERSION 2.8.11) # old enough to not set CMP0044
|
cmake_policy(VERSION 2.8.12) # old enough to not set CMP0044
|
||||||
endif()
|
endif()
|
||||||
project(${RunCMake_TEST} NONE)
|
project(${RunCMake_TEST} NONE)
|
||||||
include(${RunCMake_TEST}.cmake)
|
include(${RunCMake_TEST}.cmake)
|
||||||
|
Reference in New Issue
Block a user