include(RunCMake) foreach(p CMP0029 CMP0030 ) run_cmake(${p}-WARN) run_cmake(${p}-OLD) run_cmake(${p}-NEW) endforeach()