Re: [CMake] passing by reference to a MACRO

2008-07-16 Thread Andreas Pokorny
Hi, 2008/7/16 Jesse Corrington <[EMAIL PROTECTED]>: > [...] > MACRO( TEST_SET variable, value ) > SET( variable ${value} ) > ENDMACRO() > > > SET( TEST_VAR "testvar" ) > TEST_SET( TEST_VAR "newval" ) > MESSAGE( SEND_ERROR ${TEST_VAR} ) nearly: MACRO( TEST_SET variable value ) SET(${variab

[CMake] passing by reference to a MACRO

2008-07-16 Thread Jesse Corrington
Is there anyway to have variables passed by reference to a macro so the original will be updated. I'm pretty sure the answer is no, but maybe I just don't know the syntax well enough. Here is what I'm trying to do: MACRO( TEST_SET variable, value ) SET( variable ${value} ) ENDMACRO() SET( TE