mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
Merge topic 'compile-options-order'
8f68bcad8fTests: Add cases verifying flag ordering rulesccc83ce162Help: Document order of flags from CMAKE_<LANG>_FLAGS and COMPILE_OPTIONSdf79fe055bHelp: Remove incorrect "versionadded" for CMAKE_<LANG>_FLAGS_<CONFIG>c48d2d8480VS: Place per-source preprocessor definitions after target-wide ones Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6187
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
CMAKE_<LANG>_FLAGS_<CONFIG>
|
||||
---------------------------
|
||||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user