Merge topic 'doc-4.1-vs-flags' into release-4.2

ea357236f4 Help: Add 4.1 release note about VS link flag suppression

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11525
This commit is contained in:
Brad King
2025-12-18 15:34:49 +00:00
committed by Kitware Robot
+5 -3
View File
@@ -220,9 +220,11 @@ Other Changes
``CMAKE_*_LINKER_FLAGS`` variables. See policy :policy:`CMP0197`.
* The :ref:`Visual Studio Generators` now suppress Visual Studio's default
flags ``-Zc:forScope``, ``-Zc:inline``, and ``-Zc:wchar_t`` if they are
not specified by the project or user. This makes builds more consistent
with other generators, and with what projects and users actually specify.
``-Zc:forScope``, ``-Zc:inline``, and ``-Zc:wchar_t`` compiler flags,
and ``-dynamicbase``, ``-errorreport``, ``-nxcompat``, and ``-safeseh``
link flags, if they are not specified by the project or user. This makes
builds more consistent with other generators, and with what projects and
users actually specify.
* The :genex:`TARGET_PROPERTY` generator expression now evaluates the
:prop_tgt:`LINK_LIBRARIES` and :prop_tgt:`INTERFACE_LINK_LIBRARIES`