summaryrefslogtreecommitdiff
path: root/Help/variable/CMAKE_LANG_FLAGS.rst
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:58 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:58 +0900
commit3257609f41111c6192158f0bf97d382406926974 (patch)
treede3d1170d37cd850edf464c70c0b3da67d0320b5 /Help/variable/CMAKE_LANG_FLAGS.rst
parent7bf65aec6825377cb70a176d71f21116f1d977df (diff)
downloadcmake-3257609f41111c6192158f0bf97d382406926974.tar.gz
cmake-3257609f41111c6192158f0bf97d382406926974.tar.bz2
cmake-3257609f41111c6192158f0bf97d382406926974.zip
Imported Upstream version 3.21.0upstream/3.21.0
Diffstat (limited to 'Help/variable/CMAKE_LANG_FLAGS.rst')
-rw-r--r--Help/variable/CMAKE_LANG_FLAGS.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_LANG_FLAGS.rst b/Help/variable/CMAKE_LANG_FLAGS.rst
index 14b2694ef..2784397ac 100644
--- a/Help/variable/CMAKE_LANG_FLAGS.rst
+++ b/Help/variable/CMAKE_LANG_FLAGS.rst
@@ -15,3 +15,11 @@ This is initialized for each language from environment variables:
Initialized by the :envvar:`CUDAFLAGS` environment variable.
* ``CMAKE_Fortran_FLAGS``:
Initialized by the :envvar:`FFLAGS` environment variable.
+
+This value is a command-line string fragment. Therefore, multiple options
+should be separated by spaces, and options with spaces should be quoted.
+
+The flags in this variable will be passed to the compiler before those
+in the per-configuration :variable:`CMAKE_<LANG>_FLAGS_<CONFIG>` variant,
+and before flags added by the :command:`add_compile_options` or
+:command:`target_compile_options` commands.