diff options
author | Brad King <brad.king@kitware.com> | 2021-06-29 20:58:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-30 14:55:40 (GMT) |
commit | ef56eefc9bb9ae0ad23c80c01a3e15086dcf207e (patch) | |
tree | 274a1fe332a115cc18061c7c026e367a75c63226 /Help/variable | |
parent | e216b9bbd331e77e59634690a2be98f087acaf2c (diff) | |
download | CMake-ef56eefc9bb9ae0ad23c80c01a3e15086dcf207e.zip CMake-ef56eefc9bb9ae0ad23c80c01a3e15086dcf207e.tar.gz CMake-ef56eefc9bb9ae0ad23c80c01a3e15086dcf207e.tar.bz2 |
cmake: Allow CMAKE_CONFIGURATION_TYPES to be set by environment variable
When no `CMAKE_CONFIGURATION_TYPES` is explicitly specified while
creating a new build tree, check for an environment variable of the same
name.
Issue: #20983
Diffstat (limited to 'Help/variable')
-rw-r--r-- | Help/variable/CMAKE_CONFIGURATION_TYPES.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/variable/CMAKE_CONFIGURATION_TYPES.rst b/Help/variable/CMAKE_CONFIGURATION_TYPES.rst index 15fea4b..5298a72 100644 --- a/Help/variable/CMAKE_CONFIGURATION_TYPES.rst +++ b/Help/variable/CMAKE_CONFIGURATION_TYPES.rst @@ -10,7 +10,9 @@ types. This variable is initialized by the first :command:`project` or :command:`enable_language` command called in a project when a new build -tree is first created. The default value is generator-specific. +tree is first created. If the :envvar:`CMAKE_CONFIGURATION_TYPES` +environment variable is set, its value is used. Otherwise, the default +value is generator-specific. See :variable:`CMAKE_BUILD_TYPE` for specifying the configuration with single-config generators. |