summaryrefslogtreecommitdiffstats
path: root/Help/generator
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-02-04 19:21:25 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-02-04 19:22:49 (GMT)
commit79e5b3c46ab0fbca16b0ce9ede6fbec9bdeb2814 (patch)
tree8764d6e6d89dec7024ecf0f77d4eaf5d98cc885f /Help/generator
parent16a4ba5b311669000d83c99b1b985597205d3d69 (diff)
downloadCMake-79e5b3c46ab0fbca16b0ce9ede6fbec9bdeb2814.zip
CMake-79e5b3c46ab0fbca16b0ce9ede6fbec9bdeb2814.tar.gz
CMake-79e5b3c46ab0fbca16b0ce9ede6fbec9bdeb2814.tar.bz2
Help: Explain new behavior of cmake --build in Ninja Multi-Config
Diffstat (limited to 'Help/generator')
-rw-r--r--Help/generator/Ninja Multi-Config.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/generator/Ninja Multi-Config.rst b/Help/generator/Ninja Multi-Config.rst
index 31e8ea9..030142f 100644
--- a/Help/generator/Ninja Multi-Config.rst
+++ b/Help/generator/Ninja Multi-Config.rst
@@ -15,6 +15,11 @@ configurations (with ``<Config>`` being the configuration name.) No
``build.ninja`` file is generated by default (see below for how to generate
it.)
+``cmake --build . --config <Config>`` will always use ``build-<Config>.ninja``
+to build. If no ``--config`` argument is specified, ``cmake --build .`` will
+default to ``build-Debug.ninja``, unless a ``build.ninja`` is generated (see
+below), in which case that will be used instead.
+
Each ``build-<Config>.ninja`` file contains ``<target>`` targets as well as
``<target>:<Config>`` targets, where ``<Config>`` is the same as the
configuration specified in ``build-<Config>.ninja`` Additionally, if