diff options
author | Brad King <brad.king@kitware.com> | 2021-06-08 12:04:11 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-06-08 12:04:16 (GMT) |
commit | d1517a4ef953510a65da6be29b54be2fc59409e2 (patch) | |
tree | 390cb69534420e93313a3fc763bdd39df4b87cb3 /Help/prop_tgt | |
parent | 105e108836403379cda176ec0a16fafc0a06464a (diff) | |
parent | 8f68bcad8fafddc82b73b69f21e122ece8603a8f (diff) | |
download | CMake-d1517a4ef953510a65da6be29b54be2fc59409e2.zip CMake-d1517a4ef953510a65da6be29b54be2fc59409e2.tar.gz CMake-d1517a4ef953510a65da6be29b54be2fc59409e2.tar.bz2 |
Merge topic 'compile-options-order'
8f68bcad8f Tests: Add cases verifying flag ordering rules
ccc83ce162 Help: Document order of flags from CMAKE_<LANG>_FLAGS and COMPILE_OPTIONS
df79fe055b Help: Remove incorrect "versionadded" for CMAKE_<LANG>_FLAGS_<CONFIG>
c48d2d8480 VS: Place per-source preprocessor definitions after target-wide ones
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6187
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r-- | Help/prop_tgt/COMPILE_OPTIONS.rst | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Help/prop_tgt/COMPILE_OPTIONS.rst b/Help/prop_tgt/COMPILE_OPTIONS.rst index 4bc190a..0fd6aac 100644 --- a/Help/prop_tgt/COMPILE_OPTIONS.rst +++ b/Help/prop_tgt/COMPILE_OPTIONS.rst @@ -3,9 +3,13 @@ COMPILE_OPTIONS List of options to pass to the compiler. -This property holds a :ref:`semicolon-separated list <CMake Language Lists>` of options -specified so far for its target. Use the :command:`target_compile_options` -command to append more options. +This property holds a :ref:`semicolon-separated list <CMake Language Lists>` +of options specified so far for its target. Use the +:command:`target_compile_options` command to append more options. +The options will be added after after flags in the +:variable:`CMAKE_<LANG>_FLAGS` and :variable:`CMAKE_<LANG>_FLAGS_<CONFIG>` +variables, but before those propagated from dependencies by the +:prop_tgt:`INTERFACE_COMPILE_OPTIONS` property. This property is initialized by the :prop_dir:`COMPILE_OPTIONS` directory property when a target is created, and is used by the generators to set |