You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
929 B
42 lines
929 B
set(FOO BAR)
|
|
|
|
cmake_policy(SET CMP0054 NEW)
|
|
|
|
if("FOO" STREQUAL BAR)
|
|
message(FATAL_ERROR "The strings should not match")
|
|
|
|
if("FOO" STREQUAL BAR)
|
|
message(FATAL_ERROR "The strings should not match")
|
|
endif()
|
|
|
|
cmake_policy(SET CMP0054 OLD)
|
|
|
|
if(NOT "FOO" STREQUAL BAR)
|
|
message(FATAL_ERROR "The quoted variable should match the string")
|
|
endif()
|
|
endif()
|
|
|
|
if("FOO" STREQUAL BAR)
|
|
message(FATAL_ERROR "The strings should not match")
|
|
endif()
|
|
|
|
cmake_policy(SET CMP0054 OLD)
|
|
|
|
if(NOT "FOO" STREQUAL BAR)
|
|
message(FATAL_ERROR "The quoted variable should match the string")
|
|
|
|
if(NOT "FOO" STREQUAL BAR)
|
|
message(FATAL_ERROR "The quoted variable should match the string")
|
|
endif()
|
|
|
|
cmake_policy(SET CMP0054 NEW)
|
|
|
|
if("FOO" STREQUAL BAR)
|
|
message(FATAL_ERROR "The strings should not match")
|
|
endif()
|
|
endif()
|
|
|
|
if(NOT "FOO" STREQUAL BAR)
|
|
message(FATAL_ERROR "The quoted variable should match the string")
|
|
endif()
|