cmake_minimum_required(VERSION 3.10) if(RunCMake_TEST MATCHES "^CMP0028") cmake_minimum_required(VERSION 2.8.12) # old enough to not set CMP0028 endif() project(${RunCMake_TEST} CXX) include(${RunCMake_TEST}.cmake NO_POLICY_SCOPE) # policy used at end of dir