summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_LANG_FLAGS.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-03 14:58:19 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-03 15:02:27 (GMT)
commitccc83ce1623a90c9354a940370ed8c06d2fea30b (patch)
tree3412a589aa987dadd104c00d522cea15b44b7762 /Help/variable/CMAKE_LANG_FLAGS.rst
parentdf79fe055b010131737517c0169e4c82db42482a (diff)
downloadCMake-ccc83ce1623a90c9354a940370ed8c06d2fea30b.zip
CMake-ccc83ce1623a90c9354a940370ed8c06d2fea30b.tar.gz
CMake-ccc83ce1623a90c9354a940370ed8c06d2fea30b.tar.bz2
Help: Document order of flags from CMAKE_<LANG>_FLAGS and COMPILE_OPTIONS
Diffstat (limited to 'Help/variable/CMAKE_LANG_FLAGS.rst')
-rw-r--r--Help/variable/CMAKE_LANG_FLAGS.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_LANG_FLAGS.rst b/Help/variable/CMAKE_LANG_FLAGS.rst
index 11864f8..2784397 100644
--- a/Help/variable/CMAKE_LANG_FLAGS.rst
+++ b/Help/variable/CMAKE_LANG_FLAGS.rst
@@ -18,3 +18,8 @@ This is initialized for each language from environment variables:
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.