Re: [CMake] MACRO arguments

2006-06-15 Thread Brad King
Filipe Sousa wrote: The fallowing code is making me crazy. I can't understand why the output is always FALSE MACRO(FOO1 x) IF(x) This is the same as writing IF(x) outside the macro. MACRO(FOO2 x) IF(${x}) This is the same as writing IF(hello) outside the macro. MACRO(FOO3 x)

[CMake] MACRO arguments

2006-06-15 Thread Filipe Sousa
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(F