mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00:00
226df303f9
Add policy CMP0061 to maintain compatibility for existing projects.
17 lines
324 B
CMake
17 lines
324 B
CMake
include(RunCMake)
|
|
unset(ENV{CMAKE_CONFIG_TYPE})
|
|
|
|
run_cmake(ErrorsOFF)
|
|
run_cmake(ErrorsON)
|
|
|
|
set(RunCMake_TEST_OPTIONS -DNoProject=1)
|
|
run_cmake(BeforeProject)
|
|
unset(RunCMake_TEST_OPTIONS)
|
|
|
|
run_cmake(CMP0061-NEW)
|
|
if(RunCMake_GENERATOR MATCHES "Make")
|
|
run_cmake(CMP0061-OLD-make)
|
|
else()
|
|
run_cmake(CMP0061-OLD-other)
|
|
endif()
|