summaryrefslogtreecommitdiffstats
path: root/Help/generator/Ninja Multi-Config.rst
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-01-23 19:46:16 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-01-23 20:47:12 (GMT)
commitb7a2baf38c1f481f31db9ab41fc129a970287efd (patch)
tree946c797459ed2801bc808623f3c62852e4ff9018 /Help/generator/Ninja Multi-Config.rst
parentab2fc918216011a03f0fe7696e7bba67fc2627b3 (diff)
downloadCMake-b7a2baf38c1f481f31db9ab41fc129a970287efd.zip
CMake-b7a2baf38c1f481f31db9ab41fc129a970287efd.tar.gz
CMake-b7a2baf38c1f481f31db9ab41fc129a970287efd.tar.bz2
Ninja Multi-Config: Add variable to control configs used in cross-config build
Diffstat (limited to 'Help/generator/Ninja Multi-Config.rst')
-rw-r--r--Help/generator/Ninja Multi-Config.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/generator/Ninja Multi-Config.rst b/Help/generator/Ninja Multi-Config.rst
index 41cd5c2..e7f362e 100644
--- a/Help/generator/Ninja Multi-Config.rst
+++ b/Help/generator/Ninja Multi-Config.rst
@@ -31,6 +31,12 @@ targets will always use the configuration specified in
Ninja for the same file to be output with different commands in the same build
graph.
+You can additionally use :variable:`CMAKE_NINJA_MULTI_CROSS_CONFIGS` to limit
+the configurations that get cross-generated. If this variable is set, each
+``build-<Config>.ninja`` file will only contain rules for the configurations
+listed in the variable, plus their own configuration. This also affects which
+configurations are built by the ``<target>:all`` target.
+
If :variable:`CMAKE_NINJA_MULTI_CROSS_CONFIG_ENABLE` is not enabled, you can
still build any target in ``build-<Config>.ninja`` by specifying
``<target>:<Config>`` or ``<target>``, but not ``<target>:<OtherConfig>`` or