mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 20:00:51 -05:00
1edf138506
For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.5 where possible. Also, remove `cmake_minimum_required()` and `project()` calls from individual cases where they are handled by `CMakeLists.txt`.
11 lines
247 B
CMake
11 lines
247 B
CMake
if(RunCMake_TEST MATCHES "-CMP0052")
|
|
cmake_minimum_required(VERSION 3.0)
|
|
else()
|
|
cmake_minimum_required(VERSION 3.5)
|
|
endif()
|
|
project(${RunCMake_TEST} NONE)
|
|
if(NOT TEST_FILE)
|
|
set(TEST_FILE ${RunCMake_TEST}.cmake)
|
|
endif()
|
|
include(${TEST_FILE})
|