diff options
author | Brad King <brad.king@kitware.com> | 2023-03-31 15:10:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-31 15:30:51 (GMT) |
commit | 561ae21f40d1416aee9a1b63be3b7bafa7b29231 (patch) | |
tree | b5670100f3d4b95cba8dca58fb413ee99abe9028 /Help/variable | |
parent | 530faee017ffaabb0315bc81405bdc2ef0995c62 (diff) | |
download | CMake-561ae21f40d1416aee9a1b63be3b7bafa7b29231.zip CMake-561ae21f40d1416aee9a1b63be3b7bafa7b29231.tar.gz CMake-561ae21f40d1416aee9a1b63be3b7bafa7b29231.tar.bz2 |
Help: Clarify that {add,target}_compile_options are not used for linking
Link to alternatives that can be used for adding link options.
Issue: #24662
Diffstat (limited to 'Help/variable')
-rw-r--r-- | Help/variable/CMAKE_LANG_FLAGS.rst | 2 | ||||
-rw-r--r-- | Help/variable/CMAKE_LANG_FLAGS_CONFIG.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Help/variable/CMAKE_LANG_FLAGS.rst b/Help/variable/CMAKE_LANG_FLAGS.rst index 747ac93..909a001 100644 --- a/Help/variable/CMAKE_LANG_FLAGS.rst +++ b/Help/variable/CMAKE_LANG_FLAGS.rst @@ -33,5 +33,5 @@ per-configuration :variable:`CMAKE_<LANG>_FLAGS_<CONFIG>` variable. On invocations driving compiling, flags from both variables will be passed before flags added by commands such as :command:`add_compile_options` and :command:`target_compile_options`. On invocations driving linking, -they will be passed before before flags added by commands such as +they will be passed before flags added by commands such as :command:`add_link_options` and :command:`target_link_options`. diff --git a/Help/variable/CMAKE_LANG_FLAGS_CONFIG.rst b/Help/variable/CMAKE_LANG_FLAGS_CONFIG.rst index de7bd53..5daa4c0 100644 --- a/Help/variable/CMAKE_LANG_FLAGS_CONFIG.rst +++ b/Help/variable/CMAKE_LANG_FLAGS_CONFIG.rst @@ -11,6 +11,6 @@ The flags in this variable will be passed after those in the :variable:`CMAKE_<LANG>_FLAGS` variable. On invocations driving compiling, flags from both variables will be passed before flags added by commands such as :command:`add_compile_options` and :command:`target_compile_options`. -On invocations driving linking, they will be passed before before flags -added by commands such as :command:`add_link_options` and +On invocations driving linking, they will be passed before flags added by +commands such as :command:`add_link_options` and :command:`target_link_options`. |