mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-18 05:01:50 -06:00
Flags specified in the `COMPILE_FLAGS` source-file property should be placed after those in target-wide properties so that those on individual source files can override those on the whole target. This is already done by most generators but was not implemented correctly for VS 2010 and above. Closes: #16400
10 lines
448 B
ReStructuredText
10 lines
448 B
ReStructuredText
vs-flag-order
|
|
-------------
|
|
|
|
* The :ref:`Visual Studio Generators` for VS 2010 and above now place
|
|
per-source file flags after target-wide flags when they are classified
|
|
as raw flags with no project file setting (``AdditionalOptions``).
|
|
This behavior is more consistent with the ordering of flags produced
|
|
by other generators, and allows flags on more-specific properties
|
|
(per-source) to override those on more general ones (per-target).
|