cmake/Tests/RunCMake/if/TestNameThatDoesNotExist.cmake

7 lines
185 B
CMake
Raw Normal View History

2015-11-17 17:22:37 +01:00
cmake_policy(SET CMP0064 NEW)
if(TEST TestThatDoesNotExist)
message(FATAL_ERROR "if TestThatDoesNotExist is true")
else()
message(STATUS "if TestThatDoesNotExist is false")
endif()