mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
cmake: Allow arbitrary args passed to CMake script
This commit is contained in:
@@ -481,13 +481,17 @@ Run a Script
|
||||
|
||||
.. code-block:: shell
|
||||
|
||||
cmake [{-D <var>=<value>}...] -P <cmake-script-file>
|
||||
cmake [{-D <var>=<value>}...] -P <cmake-script-file> [-- <unparsed-options>...]
|
||||
|
||||
Process the given cmake file as a script written in the CMake
|
||||
language. No configure or generate step is performed and the cache
|
||||
is not modified. If variables are defined using ``-D``, this must be
|
||||
done before the ``-P`` argument.
|
||||
|
||||
Any options after ``--`` are not parsed by CMake, but they are still included
|
||||
in the set of :variable:`CMAKE_ARGV<n> <CMAKE_ARGV0>` variables passed to the
|
||||
script (including the ``--`` itself).
|
||||
|
||||
|
||||
Run a Command-Line Tool
|
||||
=======================
|
||||
|
||||
Reference in New Issue
Block a user