[CMake] MACRO arguments
Filipe Sousa
filipe at ipb.pt
Thu Jun 15 08:51:29 EDT 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060615/5ec20900/attachment.pgp
More information about the CMake
mailing list