Ninja Multi-Config: Shuffle variables around

Remove redundant variable CMAKE_NINJA_MULTI_CROSS_CONFIG_ENABLE.
Rename other variables. Document and improve handling of error
conditions.
This commit is contained in:
Kyle Edwards
2020-01-29 17:43:28 -05:00
committed by Brad King
parent feea34e7eb
commit b966f86d86
32 changed files with 456 additions and 173 deletions

View File

@@ -1,7 +0,0 @@
CMAKE_NINJA_MULTI_CROSS_CONFIGS
-------------------------------
Set which configurations get cross-built if
:variable:`CMAKE_NINJA_MULTI_CROSS_CONFIG_ENABLE` is set. See the
documentation for the :generator:`Ninja Multi-Config` generator for more
information.

View File

@@ -1,10 +0,0 @@
CMAKE_NINJA_MULTI_CROSS_CONFIG_ENABLE
-------------------------------------
If this variable is enabled, cross-configuration building is enabled in the
:generator:`Ninja Multi-Config` generator. See the generator's description for
more details. This variable is ``OFF`` by default.
This variable is meant to be set from the command line (via
``-DCMAKE_NINJA_MULTI_CROSS_CONFIG_ENABLE:BOOL=ON``) and should not be set from
project code.

View File

@@ -1,6 +0,0 @@
CMAKE_NINJA_MULTI_DEFAULT_BUILD_ALIAS
-------------------------------------
Controls the config of ``<target>`` aliases in ``build.ninja`` for the
:generator:`Ninja Multi-Config` generator. See the generator's documentation
for more details.

View File

@@ -1,7 +0,0 @@
CMAKE_NINJA_MULTI_DEFAULT_BUILD_TYPE
------------------------------------
Specifies a configuration type to use as the default in ``build.ninja`` for the
:generator:`Ninja Multi-Config` generator.
If this variable is not specified, no ``build.ninja`` file is generated.

View File

@@ -0,0 +1,7 @@
CMAKE_NMC_CROSS_CONFIGS
-------------------------------
Specifies a :ref:`semicolon-separated list <CMake Language Lists>` of
configurations available from all ``build-<Config>.ninja`` files in the
:generator:`Ninja Multi-Config` generator. See the generator's
documentation for more details.

View File

@@ -0,0 +1,6 @@
CMAKE_NMC_DEFAULT_BUILD_FILE_CONFIG
-------------------------------------------
Specifies the configuration to use by default in a ``build.ninja`` file in the
:generator:`Ninja Multi-Config` generator. See the generator's documentation
for more details.

View File

@@ -0,0 +1,7 @@
CMAKE_NMC_DEFAULT_CONFIGS
---------------------------------
Specifies a :ref:`semicolon-separated list <CMake Language Lists>` of configurations
to build for a target in ``build.ninja`` if no ``:<Config>`` suffix is specified in
the :generator:`Ninja Multi-Config` generator.
See the generator's documentation for more details.