https://github.com/Kitware/CMake
Raw File
Tip revision: 12a139f2b6610e688be3d2bd317d46f0ce6ddf1f authored by Brad King on 03 March 2021, 16:43:22 UTC
CMake 3.20.0-rc3
Tip revision: 12a139f
CMAKE_LANG_FLAGS.rst
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.
back to top