summaryrefslogtreecommitdiff
path: root/share/cmake-3.18/Help/variable/CMAKE_ARGV0.rst
blob: c4d1c219ea7ba9cbdfa429394a37a7a1e6597e12 (plain)
1
2
3
4
5
6
7
8
9
CMAKE_ARGV0
-----------

Command line argument passed to CMake in script mode.

When run in :ref:`-P <Script Processing Mode>` 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`.