You don&#39;t need to strip whitespace using the SITE_NAME command.<div><br class="webkit-block-placeholder"></div><div>Try this:</div><div>SITE_NAME(mySite)</div><div>MESSAGE(&quot;mySite=&#39;${mySite}&#39;&quot;)</div><div>
<br><div><span class="gmail_quote">On 11/21/07, <b class="gmail_sendername">Salvatore Iovene</b> &lt;<a href="mailto:salvatore.iovene+cmake@googlemail.com">salvatore.iovene+cmake@googlemail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
On Nov 21, 2007 5:14 PM, David Cole &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt; wrote:<br>&gt; The CMake SITE_NAME command does this in a shell / platform independent<br>&gt; way...<br>&gt;<br>
&gt; See output of &quot;cmake --help-command SITE_NAME&quot;<br><br>That doesn&#39;t mention stripping whitespaces at all.<br><br>--<br>Salvatore Iovene<br><a href="http://www.iovene.com/">http://www.iovene.com/</a><br>Key Fingerprint: 5647 944D D5AD 2E87 00B4&nbsp;&nbsp;7D54 2864 359D FF20 16D8
<br></blockquote></div><br>&nbsp;</div>