You don'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("mySite='${mySite}'")</div><div>
<br><div><span class="gmail_quote">On 11/21/07, <b class="gmail_sendername">Salvatore Iovene</b> <<a href="mailto:salvatore.iovene+cmake@googlemail.com">salvatore.iovene+cmake@googlemail.com</a>> 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 <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>> wrote:<br>> The CMake SITE_NAME command does this in a shell / platform independent<br>> way...<br>><br>
> See output of "cmake --help-command SITE_NAME"<br><br>That doesn'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 7D54 2864 359D FF20 16D8
<br></blockquote></div><br> </div>