mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 07:41:15 +00:00
14e49ed156
if(TEST TestNameThatExists) will return true if a test with the name TestNameThatExists has been added with add_test. The syntax is similar to if(TARGET TargetName). Since use of "TEST" as an argument to if() could previously be interpreted as a non-keyword argument, add policy CMP0064 to treat it as a keyword as NEW behavior.
7 lines
185 B
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()
|