CMake/Tests/RunCMake/CMP0054/CMP0054-WARN.cmake

8 lines
201 B
CMake

set(FOO "BAR")
if(NOT "FOO" STREQUAL "BAR")
message(FATAL_ERROR "The given literals should match")
elseif("FOO" STREQUAL "BING")
message(FATAL_ERROR "The given literals should not match")
endif()