summaryrefslogtreecommitdiff
path: root/share/cmake-3.22/Help/command/site_name.rst
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.22/Help/command/site_name.rst')
-rw-r--r--share/cmake-3.22/Help/command/site_name.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/cmake-3.22/Help/command/site_name.rst b/share/cmake-3.22/Help/command/site_name.rst
new file mode 100644
index 0000000..09b5a9f
--- /dev/null
+++ b/share/cmake-3.22/Help/command/site_name.rst
@@ -0,0 +1,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.