[CMake] What exactly does SITE_NAME() return?

Marcel Loose loose at astron.nl
Mon Feb 1 04:15:11 EST 2010


Hi all,

What exactly does SITE_NAME() return? Is it the short hostname, or the
fully qualified domain name? 

The docs are not clear about this:

  site_name
       Set the given variable to the name of the computer.

And the ChangeLog.txt is confusing me:

2001-10-18 18:01  barre

        * Source/cmSiteNameCommand.cxx: SITE_NAME should return the most
          qualified name of the host. If nslookup works, now the domain
is
          appended to the hostname (whereas it *replaced* the host name
          before)

Tests that I have run on a number of different systems all seem to be
doing the equivalent of 'hostname -s', i.e. return the short hostname,
but the ChangeLog.txt appears to suggest that it should do the
equivalent of 'hostname -f', i.e. return the fully qualified domain
name. Which is correct?

Best regards,
Marcel Loose.






More information about the CMake mailing list