Thanks all, I was missing the quotes around the initial ${FOO} in my tests...<div><br></div><div>if(&quot;${FOO}&quot; STREQUAL &quot;${BAR}&quot;) </div><div><br></div><div>does what I wanted.<br><br><div class="gmail_quote">
On Tue, Sep 29, 2009 at 1:51 PM, Nathaniel Waisbrot (Cont ARL/CISD) <span dir="ltr">&lt;<a href="mailto:nathaniel.waisbrot@arl.army.mil">nathaniel.waisbrot@arl.army.mil</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">&gt; Of course I read the docs for the if() command.   It doesn&#39;t contain<br>
&gt; any comments about comparing a variable&#39;s value to another variable&#39;s<br>
&gt; value.   Are you suggesting that if it isn&#39;t in the documentation then<br>
&gt; it isn&#39;t supported?   If so, please say so.   I was just hoping<br>
&gt; someone might know a way to do this kind of test/comparison.<br>
<br>
<br>
<br>
</div>Maybe the information that you&#39;re missing is that all CMake variables<br>
are stored internally as strings.  So paths, lists, numbers, etc can be<br>
compared with STREQUAL.<br>
<br>
<br>
</blockquote></div><br></div>