Imported Upstream version 3.17.1
[platform/upstream/cmake.git] / Help / variable / CMAKE_CROSS_CONFIGS.rst
1 CMAKE_CROSS_CONFIGS
2 -------------------
3
4 Specifies a :ref:`semicolon-separated list <CMake Language Lists>` of
5 configurations available from all ``build-<Config>.ninja`` files in the
6 :generator:`Ninja Multi-Config` generator.  This variable activates
7 cross-config mode. Targets from each config specified in this variable can be
8 built from any ``build-<Config>.ninja`` file. Custom commands will use the
9 configuration native to ``build-<Config>.ninja``. If it is set to ``all``, all
10 configurations from :variable:`CMAKE_CONFIGURATION_TYPES` are cross-configs. If
11 it is not specified, or empty, each ``build-<Config>.ninja`` file will only
12 contain build rules for its own configuration.
13
14 The value of this variable must be a subset of
15 :variable:`CMAKE_CONFIGURATION_TYPES`.