diff options
author | Brad King <brad.king@kitware.com> | 2018-04-19 12:57:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-19 13:03:32 (GMT) |
commit | 63e0c16e3de5d3524a409a73ac430109416050de (patch) | |
tree | 24b4bfa8bf2e774452df3a42d2e1033ff0f1248b | |
parent | 8acf46caf11c037c76a221ec0b32803f75b03275 (diff) | |
download | CMake-63e0c16e3de5d3524a409a73ac430109416050de.zip CMake-63e0c16e3de5d3524a409a73ac430109416050de.tar.gz CMake-63e0c16e3de5d3524a409a73ac430109416050de.tar.bz2 |
Help: Link from CMAKE_<LANG>_FLAGS to <LANG>FLAGS environment variables
-rw-r--r-- | Help/variable/CMAKE_LANG_FLAGS.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_LANG_FLAGS.rst b/Help/variable/CMAKE_LANG_FLAGS.rst index c57d92c..14b2694 100644 --- a/Help/variable/CMAKE_LANG_FLAGS.rst +++ b/Help/variable/CMAKE_LANG_FLAGS.rst @@ -4,3 +4,14 @@ CMAKE_<LANG>_FLAGS 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: + +* ``CMAKE_C_FLAGS``: + Initialized by the :envvar:`CFLAGS` environment variable. +* ``CMAKE_CXX_FLAGS``: + Initialized by the :envvar:`CXXFLAGS` environment variable. +* ``CMAKE_CUDA_FLAGS``: + Initialized by the :envvar:`CUDAFLAGS` environment variable. +* ``CMAKE_Fortran_FLAGS``: + Initialized by the :envvar:`FFLAGS` environment variable. |