From 63e0c16e3de5d3524a409a73ac430109416050de Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 19 Apr 2018 08:57:03 -0400 Subject: Help: Link from CMAKE__FLAGS to FLAGS environment variables --- Help/variable/CMAKE_LANG_FLAGS.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) 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__FLAGS Flags for all build types. ```` 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. -- cgit v0.12