mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 08:08:24 -05:00
f4aa34daa7
For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.10 where possible.
10 lines
271 B
CMake
10 lines
271 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
if(RunCMake_TEST MATCHES "CMP0070-(WARN|OLD)")
|
|
cmake_policy(VERSION 3.9) # old enough to not set CMP0070
|
|
endif()
|
|
project(${RunCMake_TEST} NONE)
|
|
if(NOT TEST_FILE)
|
|
set(TEST_FILE ${RunCMake_TEST}.cmake)
|
|
endif()
|
|
include(${TEST_FILE})
|