summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-18 19:32:17 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-10-18 19:32:26 (GMT)
commit20587e5af99307a1f8a88ffac5733d8f79a5cc99 (patch)
tree3e60493dc13f09951aad43b21924bc97289558e4 /Help/variable
parent53841c6ea2007f74d8e04e09a458a55607c93cf1 (diff)
parente0075799ed97951c62f749eae671cefb62b2e694 (diff)
downloadCMake-20587e5af99307a1f8a88ffac5733d8f79a5cc99.zip
CMake-20587e5af99307a1f8a88ffac5733d8f79a5cc99.tar.gz
CMake-20587e5af99307a1f8a88ffac5733d8f79a5cc99.tar.bz2
Merge topic 'doc-flag-init' into release-3.25
e0075799ed Help: Clarify how language-specific flag environment values are used Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7804
Diffstat (limited to 'Help/variable')
-rw-r--r--Help/variable/CMAKE_LANG_FLAGS.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Help/variable/CMAKE_LANG_FLAGS.rst b/Help/variable/CMAKE_LANG_FLAGS.rst
index 2784397..4b39b1d 100644
--- a/Help/variable/CMAKE_LANG_FLAGS.rst
+++ b/Help/variable/CMAKE_LANG_FLAGS.rst
@@ -5,7 +5,9 @@ Flags for all build types.
``<LANG>`` flags used regardless of the value of :variable:`CMAKE_BUILD_TYPE`.
-This is initialized for each language from environment variables:
+For each language, if this variable is not defined, it is initialized
+and stored in the cache using values from environment variables in
+combination with CMake's builtin defaults for the toolchain:
* ``CMAKE_C_FLAGS``:
Initialized by the :envvar:`CFLAGS` environment variable.
@@ -15,6 +17,12 @@ This is initialized for each language from environment variables:
Initialized by the :envvar:`CUDAFLAGS` environment variable.
* ``CMAKE_Fortran_FLAGS``:
Initialized by the :envvar:`FFLAGS` environment variable.
+* ``CMAKE_CSharp_FLAGS``:
+ Initialized by the :envvar:`CSFLAGS` environment variable.
+* ``CMAKE_HIP_FLAGS``:
+ Initialized by the :envvar:`HIPFLAGS` environment variable.
+* ``CMAKE_ISPC_FLAGS``:
+ Initialized by the :envvar:`ISPCFLAGS` environment variable.
This value is a command-line string fragment. Therefore, multiple options
should be separated by spaces, and options with spaces should be quoted.