I currently have the following macro:<br><br><font class="Apple-style-span" face="'courier new', monospace">macro( get_conf_dependencies var_name project_name debug )<br> if( debug )<br> message( "Using DEBUG" )<br>
set( ${var_name} ${${project_name}_DEBUG_DEPENDENCIES} )<br> else()<br> set( ${var_name} ${${project_name}_RELEASE_DEPENDENCIES} )<br> endif()<br>endmacro()</font><div><font class="Apple-style-span" face="'courier new'" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br>
</span></font></div>I then call the macro in two particular ways:<div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">get_conf_dependencies( myVar myProject TRUE )</font></div><font class="Apple-style-span" face="'courier new', monospace">get_conf_dependencies( myVar myProject FALSE )</font><div>
<br></div><div>In both cases, I <b><i>do not</i></b> get the message "Using DEBUG". Are my eyes playing tricks on me, or is CMake not processing trivial boolean logic properly in its conditionals? I'm using version 2.6.3.</div>