Files
CMake/Tests/RunCMake/try_compile/CMakeLists.txt
T
Brad King f4aa34daa7 Tests/RunCMake: Update cmake_minimum_required versions to 3.10
For policy-specific tests, use the version before the policy was
introduced.  Otherwise, use 3.10 where possible.
2024-10-03 11:52:22 -04:00

9 lines
306 B
CMake

cmake_minimum_required(VERSION 3.10)
if(RunCMake_TEST STREQUAL "CMP0066")
cmake_policy(VERSION 3.6) # old enough to not set CMP0066
elseif(RunCMake_TEST STREQUAL "CMP0067")
cmake_policy(VERSION 3.7) # old enough to not set CMP0067
endif()
project(${RunCMake_TEST} NONE)
include(${RunCMake_TEST}.cmake)