summaryrefslogtreecommitdiff
path: root/Help/variable/CMAKE_ARGV0.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/variable/CMAKE_ARGV0.rst')
-rw-r--r--Help/variable/CMAKE_ARGV0.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_ARGV0.rst b/Help/variable/CMAKE_ARGV0.rst
new file mode 100644
index 000000000..8b1ecb79e
--- /dev/null
+++ b/Help/variable/CMAKE_ARGV0.rst
@@ -0,0 +1,9 @@
+CMAKE_ARGV0
+-----------
+
+Command line argument passed to CMake in script mode.
+
+When run in :ref:`-P <CMake Options>` script mode, CMake sets this variable to
+the first command line argument. It then also sets ``CMAKE_ARGV1``,
+``CMAKE_ARGV2``, ... and so on, up to the number of command line arguments
+given. See also :variable:`CMAKE_ARGC`.