ソースを参照

Help: Replace mentions of ``-D`` option with :option:`-D` role

Alex Turbov 3 年 前
コミット
09446266ee

+ 2 - 1
Help/variable/CMAKE_LANG_COMPILER.rst

@@ -14,7 +14,8 @@ This variable can be set by the user during the first time a build tree is confi
 If a non-full path value is supplied then CMake will resolve the full path of
 the compiler.
 
-The variable could be set in a user supplied toolchain file or via `-D` on the command line.
+The variable could be set in a user supplied toolchain file or via
+:option:`-D <cmake -D>` on the command line.
 
 .. note::
   Options that are required to make the compiler work correctly can be included

+ 1 - 1
Help/variable/CPACK_CUSTOM_INSTALL_VARIABLES.rst

@@ -3,7 +3,7 @@ CPACK_CUSTOM_INSTALL_VARIABLES
 
 .. versionadded:: 3.21
 
-CPack variables (set via e.g. ``cpack -D``, ``CPackConfig.cmake`` or
+CPack variables (set via e.g. :option:`cpack -D`, ``CPackConfig.cmake`` or
 :variable:`CPACK_PROJECT_CONFIG_FILE` scripts) are not directly visible in
 installation scripts.  Instead, one can pass a list of ``varName=value``
 pairs in the ``CPACK_CUSTOM_INSTALL_VARIABLES`` variable.  At install time,