Help: Add some more :option: role to cmake-language(7) manual

This commit is contained in:
Alex Turbov
2022-11-06 03:43:30 +04:00
parent 8a3e732b9b
commit 295062ef4b
+8 -8
View File
@@ -37,10 +37,10 @@ Scripts
An individual ``<script>.cmake`` source file may be processed
in *script mode* by using the :manual:`cmake(1)` command-line tool
with the ``-P`` option. Script mode simply runs the commands in
the given CMake Language source file and does not generate a
build system. It does not allow CMake commands that define build
targets or actions.
with the :option:`-P <cmake -P>` option. Script mode simply runs
the commands in the given CMake Language source file and does not
generate a build system. It does not allow CMake commands that
define build targets or actions.
Modules
-------
@@ -542,8 +542,8 @@ Directory Scope
bindings. Before processing the ``CMakeLists.txt`` file for a
directory, CMake copies all variable bindings currently defined
in the parent directory, if any, to initialize the new directory
scope. CMake `Scripts`_, when processed with ``cmake -P``, bind
variables in one "directory" scope.
scope. CMake `Scripts`_, when processed with :option:`cmake -P`,
bind variables in one "directory" scope.
A variable "set" or "unset" not inside a function call binds
to the current directory scope.
@@ -597,11 +597,11 @@ Initialization
Changed values are not written back to the calling process,
and they are not seen by subsequent build or test processes.
See the :ref:`cmake -E env <Run a Command-Line Tool>` command-line
See the :option:`cmake -E env <cmake-E env>` command-line
tool to run a command in a modified environment.
Inspection
See the :ref:`cmake -E environment <Run a Command-Line Tool>` command-line
See the :option:`cmake -E environment <cmake-E environment>` command-line
tool to display all current environment variables.
The :manual:`cmake-env-variables(7)` manual documents environment