• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1CMAKE_<LANG>_FLAGS_INIT
2-----------------------
3
4.. versionadded:: 3.7
5
6Value used to initialize the :variable:`CMAKE_<LANG>_FLAGS` cache entry
7the first time a build tree is configured for language ``<LANG>``.
8This variable is meant to be set by a :variable:`toolchain file
9<CMAKE_TOOLCHAIN_FILE>`.  CMake may prepend or append content to
10the value based on the environment and target platform.  For example,
11the contents of a ``xxxFLAGS`` environment variable will be prepended,
12where ``xxx`` will be language-specific but not necessarily the same as
13``<LANG>`` (e.g. :envvar:`CXXFLAGS` for ``CXX``, :envvar:`FFLAGS` for
14``Fortran``, and so on).
15This value is a command-line string fragment. Therefore, multiple options
16should be separated by spaces, and options with spaces should be quoted.
17
18See also the configuration-specific
19:variable:`CMAKE_<LANG>_FLAGS_<CONFIG>_INIT` variable.
20