summaryrefslogtreecommitdiffstats
path: root/Help/envvar/CFLAGS.rst
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:27 (GMT)
commitf668272d10c9db9c3be6af85f25808816f835b1d (patch)
tree39efb287549ba865f397c610728344596e317408 /Help/envvar/CFLAGS.rst
parent9c6e9a5e157f10a8159f03f25a1f5faf25bc4b89 (diff)
parente0075799ed97951c62f749eae671cefb62b2e694 (diff)
downloadCMake-f668272d10c9db9c3be6af85f25808816f835b1d.zip
CMake-f668272d10c9db9c3be6af85f25808816f835b1d.tar.gz
CMake-f668272d10c9db9c3be6af85f25808816f835b1d.tar.bz2
Merge topic 'doc-flag-init'
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/envvar/CFLAGS.rst')
-rw-r--r--Help/envvar/CFLAGS.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/Help/envvar/CFLAGS.rst b/Help/envvar/CFLAGS.rst
index 190b4f4..a6b2452 100644
--- a/Help/envvar/CFLAGS.rst
+++ b/Help/envvar/CFLAGS.rst
@@ -3,11 +3,10 @@ CFLAGS
.. include:: ENV_VAR.txt
-Default compilation flags to be used when compiling ``C`` files. Will only be
-used by CMake on the first configuration to determine ``CC`` default compilation
-flags, after which the value for ``CFLAGS`` is stored in the cache
-as :variable:`CMAKE_C_FLAGS <CMAKE_<LANG>_FLAGS>`. For any configuration run
-(including the first), the environment variable will be ignored if the
-:variable:`CMAKE_C_FLAGS <CMAKE_<LANG>_FLAGS>` variable is defined.
+Add default compilation flags to be used when compiling ``C`` files.
+
+.. |CMAKE_LANG_FLAGS| replace:: :variable:`CMAKE_C_FLAGS <CMAKE_<LANG>_FLAGS>`
+.. |LANG| replace:: ``C``
+.. include:: LANG_FLAGS.txt
See also :variable:`CMAKE_C_FLAGS_INIT <CMAKE_<LANG>_FLAGS_INIT>`.