summaryrefslogtreecommitdiffstats
path: root/Help/envvar
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-29 20:58:16 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-30 14:55:40 (GMT)
commitef56eefc9bb9ae0ad23c80c01a3e15086dcf207e (patch)
tree274a1fe332a115cc18061c7c026e367a75c63226 /Help/envvar
parente216b9bbd331e77e59634690a2be98f087acaf2c (diff)
downloadCMake-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/envvar')
-rw-r--r--Help/envvar/CMAKE_CONFIGURATION_TYPES.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Help/envvar/CMAKE_CONFIGURATION_TYPES.rst b/Help/envvar/CMAKE_CONFIGURATION_TYPES.rst
new file mode 100644
index 0000000..833aa4a
--- /dev/null
+++ b/Help/envvar/CMAKE_CONFIGURATION_TYPES.rst
@@ -0,0 +1,11 @@
+CMAKE_CONFIGURATION_TYPES
+-------------------------
+
+.. versionadded:: 3.22
+
+.. include:: ENV_VAR.txt
+
+The ``CMAKE_CONFIGURATION_TYPES`` environment variable specifies a
+default value for the :variable:`CMAKE_CONFIGURATION_TYPES` variable
+when there is no explicit configuration given on the first run while
+creating a new build tree.