Re: [CMake] Test for if a macro defined

2008-02-10 Thread Alexander Neundorf
On Saturday 09 February 2008, James Bigler wrote: > Is there an expression similar to the one for variables to determine if a > macro is defined? > > MACRO(TEST) >MESSAGE("TEST is defined") > ENDMACRO(TEST) > > IF(DEFINED TEST) >TEST() > ELSE(DEFINED TEST) >MESSAGE("TEST is not defined"

Re: [CMake] Test for if a macro defined

2008-02-09 Thread Filipe Sousa
James Bigler wrote: Is there an expression similar to the one for variables to determine if a macro is defined? MACRO(TEST) MESSAGE("TEST is defined") ENDMACRO(TEST) IF(DEFINED TEST) TEST() ELSE(DEFINED TEST) MESSAGE("TEST is not defined") ENDIF(DEFINED TEST) I don't think there is

[CMake] Test for if a macro defined

2008-02-08 Thread James Bigler
Is there an expression similar to the one for variables to determine if a macro is defined? MACRO(TEST) MESSAGE("TEST is defined") ENDMACRO(TEST) IF(DEFINED TEST) TEST() ELSE(DEFINED TEST) MESSAGE("TEST is not defined") ENDIF(DEFINED TEST) James __