<div class="gmail_quote">On Sat, Mar 21, 2009 at 8:00 PM, Robert Dailey <span dir="ltr">&lt;<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I currently have the following macro:<br><br><font face="&#39;courier new&#39;, monospace">macro( get_conf_dependencies var_name project_name debug )<br>    if( debug )<br>        message( &quot;Using DEBUG&quot; )<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 size="2" face="&#39;courier new&#39;"><span style="font-size: 10px;"><br>

</span></font></div>I then call the macro in two particular ways:<div><br></div><div><font face="&#39;courier new&#39;, monospace">get_conf_dependencies( myVar myProject TRUE )</font></div><font face="&#39;courier new&#39;, 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 &quot;Using DEBUG&quot;. Are my eyes playing tricks on me, or is CMake not processing trivial boolean logic properly in its conditionals? I&#39;m using version 2.6.3.</div>
</blockquote><div><br>I ran into the same issue a while back.  Use a function() or actual variables in your call to get_conf_dependencies.<br><a href="http://public.kitware.com/Bug/view.php?id=8397">http://public.kitware.com/Bug/view.php?id=8397</a><br>
</div></div><br>-- <br>Philip Lowman<br>