You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
576 B

if("x${RunCMake_TEST}" STREQUAL "xNoMinimumRequired")
# No cmake_minimum_required(VERSION)
elseif(RunCMake_TEST MATCHES "^CMP0048")
cmake_minimum_required(VERSION 2.8.12) # old enough to not set CMP0048
else()
cmake_minimum_required(VERSION 3.10)
# CMP0180 needs to be set before the project() call for these tests
if("x${RunCMake_TEST}" STREQUAL "xCMP0180-NEW")
cmake_policy(SET CMP0180 NEW)
elseif("x${RunCMake_TEST}" STREQUAL "xCMP0180-OLD")
cmake_policy(SET CMP0180 OLD)
endif()
endif()
project(${RunCMake_TEST} NONE)
include(${RunCMake_TEST}.cmake)