CMake/Tests/RunCMake/if/TestNameThatDoesNotExist.cmake

7 lines
185 B
CMake

cmake_policy(SET CMP0064 NEW)
if(TEST TestThatDoesNotExist)
message(FATAL_ERROR "if TestThatDoesNotExist is true")
else()
message(STATUS "if TestThatDoesNotExist is false")
endif()