The fallowing code is making me crazy. I can't understand why the output is 
always FALSE

MACRO(FOO1 x)
  IF(x)
    MESSAGE(TRUE)
  ELSE(x)
    MESSAGE(FALSE)
  ENDIF(x)
ENDMACRO(FOO1)

MACRO(FOO2 x)
  IF(${x})
    MESSAGE(TRUE)
  ELSE(${x})
    MESSAGE(FALSE)
  ENDIF(${x})
ENDMACRO(FOO2)

MACRO(FOO3 x)
  IF("${x}")
    MESSAGE(TRUE)
  ELSE("${x}")
    MESSAGE(FALSE)
  ENDIF("${x}")
ENDMACRO(FOO3)

FOO1("hello")
FOO2("hello")
FOO3("hello")

cmake version 2.5-20060613
-- 
Filipe Sousa

Attachment: pgpe17paYLo2Z.pgp
Description: PGP signature

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to