diff options
author | Craig Scott <craig.scott@crascit.com> | 2017-09-27 13:01:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-09-27 13:01:35 (GMT) |
commit | a2eec58dfa94d8c2994c70815c12eba3cf467907 (patch) | |
tree | a955b5c99e9f0cc566562d568d2dc342dc1f97d7 /Help/envvar/CFLAGS.rst | |
parent | 825baaa1b3698c40ac349f4d2daa45277e64397e (diff) | |
parent | e6b77c5f1a918b3b33457eca0590d0ff3840c08f (diff) | |
download | CMake-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.rst | 9 |
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. |