diff options
author | Brad King <brad.king@kitware.com> | 2021-06-03 14:58:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-03 15:02:27 (GMT) |
commit | ccc83ce1623a90c9354a940370ed8c06d2fea30b (patch) | |
tree | 3412a589aa987dadd104c00d522cea15b44b7762 /Help/variable/CMAKE_LANG_FLAGS.rst | |
parent | df79fe055b010131737517c0169e4c82db42482a (diff) | |
download | CMake-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.rst | 5 |
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. |