summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-02 17:08:14 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-02 17:11:08 (GMT)
commit4cb5d3353f488ee7bf3943619e67a5664dbae8df (patch)
treea711386a9b0cd0d3e49c315222ea45a914499726 /Help
parentab2ae4823c3b60347825da4b851cd4e676f8bed1 (diff)
downloadCMake-4cb5d3353f488ee7bf3943619e67a5664dbae8df.zip
CMake-4cb5d3353f488ee7bf3943619e67a5664dbae8df.tar.gz
CMake-4cb5d3353f488ee7bf3943619e67a5664dbae8df.tar.bz2
VS: Place source-specific AdditionalOptions after target-wide flags
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
Diffstat (limited to 'Help')
-rw-r--r--Help/release/dev/vs-flag-order.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Help/release/dev/vs-flag-order.rst b/Help/release/dev/vs-flag-order.rst
new file mode 100644
index 0000000..21cea37
--- /dev/null
+++ b/Help/release/dev/vs-flag-order.rst
@@ -0,0 +1,9 @@
+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).