<div dir="ltr">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:<br>
<br>MACRO( TEST_SET variable, value )<br> SET( variable ${value} )<br>ENDMACRO()<br><br><br>SET( TEST_VAR "testvar" )<br>TEST_SET( TEST_VAR "newval" )<br>MESSAGE( SEND_ERROR ${TEST_VAR} )<br><br>prints out "testvar", but I want it to be "newval"<br>
</div>