Looks to me, from CMake/Source/cmSiteNameCommand.cxx that we simply call "hostname" with no arguments and then use a regular expression to parse out the name of the host from that output.<br><br><div>Are you encountering a problem with it that leads to unexpected results or would you just like better documentation?</div>
<div><br></div><div><br><div class="gmail_quote">On Mon, Feb 1, 2010 at 4:15 AM, Marcel Loose <span dir="ltr"><<a href="mailto:loose@astron.nl">loose@astron.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
What exactly does SITE_NAME() return? Is it the short hostname, or the<br>
fully qualified domain name?<br>
<br>
The docs are not clear about this:<br>
<br>
site_name<br>
Set the given variable to the name of the computer.<br>
<br>
And the ChangeLog.txt is confusing me:<br>
<br>
2001-10-18 18:01 barre<br>
<br>
* Source/cmSiteNameCommand.cxx: SITE_NAME should return the most<br>
qualified name of the host. If nslookup works, now the domain<br>
is<br>
appended to the hostname (whereas it *replaced* the host name<br>
before)<br>
<br>
Tests that I have run on a number of different systems all seem to be<br>
doing the equivalent of 'hostname -s', i.e. return the short hostname,<br>
but the ChangeLog.txt appears to suggest that it should do the<br>
equivalent of 'hostname -f', i.e. return the fully qualified domain<br>
name. Which is correct?<br>
<br>
Best regards,<br>
Marcel Loose.<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>