summaryrefslogtreecommitdiffstats
path: root/Help/command/site_name.rst
blob: 09b5a9fbd6e205d1cf6431b511a58bea4a49bb64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
site_name
---------

Set the given variable to the name of the computer.

.. code-block:: cmake

  site_name(variable)

On UNIX-like platforms, if the variable ``HOSTNAME`` is set, its value
will be executed as a command expected to print out the host name,
much like the ``hostname`` command-line tool.