BUG: EQUAL -> STREQUAL for string comparison.
This commit is contained in:
parent
b7e04e69ae
commit
9e29a742a9
|
@ -37,11 +37,11 @@ MACRO(strange_macro m)
|
|||
ENDMACRO(strange_macro m)
|
||||
STRANGE_MACRO(var)
|
||||
set(second_var "second_var")
|
||||
IF("${var}" EQUAL "strange_macro" AND "${second_var}" EQUAL "second_var")
|
||||
IF("${var}" STREQUAL "strange_macro" AND "${second_var}" STREQUAL "second_var")
|
||||
PASS("Case Test" "(${var} ${second_var})")
|
||||
ELSE("${var}" EQUAL "strange_macro" AND "${second_var}" EQUAL "second_var")
|
||||
ELSE("${var}" STREQUAL "strange_macro" AND "${second_var}" STREQUAL "second_var")
|
||||
FAILED("Case test" "(${var} ${second_var})")
|
||||
ENDIF("${var}" EQUAL "strange_macro" AND "${second_var}" EQUAL "second_var")
|
||||
ENDIF("${var}" STREQUAL "strange_macro" AND "${second_var}" STREQUAL "second_var")
|
||||
|
||||
# test backing up command
|
||||
MACRO(ADD_EXECUTABLE exec)
|
||||
|
|
Loading…
Reference in New Issue