BUG: EQUAL -> STREQUAL for string comparison.

This commit is contained in:
Brad King 2006-10-25 10:58:30 -04:00
parent b7e04e69ae
commit 9e29a742a9
1 changed files with 3 additions and 3 deletions

View File

@ -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)