cmake/Tests/RunCMake/build_command/RunCMakeTest.cmake

17 lines
324 B
CMake
Raw Normal View History

2012-04-19 19:04:21 +03:00
include(RunCMake)
2015-08-17 11:37:30 +02:00
unset(ENV{CMAKE_CONFIG_TYPE})
2012-04-19 19:04:21 +03:00
run_cmake(ErrorsOFF)
run_cmake(ErrorsON)
2013-03-16 19:13:01 +02:00
set(RunCMake_TEST_OPTIONS -DNoProject=1)
run_cmake(BeforeProject)
unset(RunCMake_TEST_OPTIONS)
2015-08-17 11:37:30 +02:00
run_cmake(CMP0061-NEW)
if(RunCMake_GENERATOR MATCHES "Make")
run_cmake(CMP0061-OLD-make)
else()
run_cmake(CMP0061-OLD-other)
endif()