summaryrefslogtreecommitdiffstats
path: root/Help/envvar/CFLAGS.rst
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2017-09-27 13:01:06 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-27 13:01:35 (GMT)
commita2eec58dfa94d8c2994c70815c12eba3cf467907 (patch)
treea955b5c99e9f0cc566562d568d2dc342dc1f97d7 /Help/envvar/CFLAGS.rst
parent825baaa1b3698c40ac349f4d2daa45277e64397e (diff)
parente6b77c5f1a918b3b33457eca0590d0ff3840c08f (diff)
downloadCMake-a2eec58dfa94d8c2994c70815c12eba3cf467907.zip
CMake-a2eec58dfa94d8c2994c70815c12eba3cf467907.tar.gz
CMake-a2eec58dfa94d8c2994c70815c12eba3cf467907.tar.bz2
Merge topic 'document_env_variables'
e6b77c5f Help: Document CMake's environment variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1235
Diffstat (limited to 'Help/envvar/CFLAGS.rst')
-rw-r--r--Help/envvar/CFLAGS.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Help/envvar/CFLAGS.rst b/Help/envvar/CFLAGS.rst
new file mode 100644
index 0000000..60b2cd3
--- /dev/null
+++ b/Help/envvar/CFLAGS.rst
@@ -0,0 +1,9 @@
+CFLAGS
+------
+
+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.