From b0ea36730847695c5e9579de92e7dd4272cfc27a Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 20 May 2015 08:30:36 -0400 Subject: [PATCH] Help: Spell '-D' option consistently across documentation (#15575) Always show the option with its argument separate in summary text. State in the main documentation that the option and its argument can be given together too. --- Help/manual/OPTIONS_BUILD.txt | 3 +++ Help/manual/cmake.1.rst | 2 +- Source/cmake.h | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Help/manual/OPTIONS_BUILD.txt b/Help/manual/OPTIONS_BUILD.txt index e4c5873bb..4207db406 100644 --- a/Help/manual/OPTIONS_BUILD.txt +++ b/Help/manual/OPTIONS_BUILD.txt @@ -27,6 +27,9 @@ command in the project sets the type to ``PATH`` or ``FILEPATH`` then the ```` will be converted to an absolute path. + This option may also be given as a single argument: + ``-D:=`` or ``-D=``. + ``-U `` Remove matching entries from CMake cache. diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst index b2f7e9d36..4bd5a5ec7 100644 --- a/Help/manual/cmake.1.rst +++ b/Help/manual/cmake.1.rst @@ -9,7 +9,7 @@ Synopsis .. parsed-literal:: cmake [] ( | ) - cmake [(-D=)...] -P + cmake [(-D =)...] -P cmake --build [] [-- ...] cmake -E [...] cmake --find-package ... diff --git a/Source/cmake.h b/Source/cmake.h index 0d1977eac..0a1ee7d79 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -403,7 +403,7 @@ private: #define CMAKE_STANDARD_OPTIONS_TABLE \ {"-C ", "Pre-load a script to populate the cache."}, \ - {"-D :=", "Create a cmake cache entry."}, \ + {"-D [:]=", "Create a cmake cache entry."}, \ {"-U ", "Remove matching entries from CMake cache."}, \ {"-G ", "Specify a build system generator."},\ {"-T ", "Specify toolset name if supported by generator."}, \