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

8 lines
201 B
CMake
Raw Normal View History

2015-04-27 22:25:09 +02:00
set(FOO "BAR")
if(NOT "FOO" STREQUAL "BAR")
message(FATAL_ERROR "The given literals should match")
2015-11-17 17:22:37 +01:00
elseif("FOO" STREQUAL "BING")
message(FATAL_ERROR "The given literals should not match")
2015-04-27 22:25:09 +02:00
endif()