summaryrefslogtreecommitdiffstats
path: root/Help/variable
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
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')
-rw-r--r--Help/variable/CMAKE_LANG_FLAGS.rst5
-rw-r--r--Help/variable/CMAKE_LANG_FLAGS_CONFIG.rst5
2 files changed, 10 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.
diff --git a/Help/variable/CMAKE_LANG_FLAGS_CONFIG.rst b/Help/variable/CMAKE_LANG_FLAGS_CONFIG.rst
index 1dbd036..f0900fd 100644
--- a/Help/variable/CMAKE_LANG_FLAGS_CONFIG.rst
+++ b/Help/variable/CMAKE_LANG_FLAGS_CONFIG.rst
@@ -2,3 +2,8 @@ CMAKE_<LANG>_FLAGS_<CONFIG>
---------------------------
Flags for language ``<LANG>`` when building for the ``<CONFIG>`` configuration.
+
+The flags in this variable will be passed to the compiler after those
+in the :variable:`CMAKE_<LANG>_FLAGS` variable, but before flags added
+by the :command:`add_compile_options` or :command:`target_compile_options`
+commands.