mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-15 05:51:07 -05:00
We do not add default warning flags on other compilers, and having
a warning flag in the default flags makes it hard for projects to
customize the warning level. They need to use string processing
to remove `/W3` from `CMAKE_{C,CXX}_FLAGS`. Therefore we should
drop it.
However, projects may be using string processing to replace `/W3`
with another flag, so we cannot simply drop it. Add a policy to
drop it in a compatible way.
Fixes: #18317
7 lines
202 B
ReStructuredText
7 lines
202 B
ReStructuredText
msvc-warning-flags
|
|
------------------
|
|
|
|
* With MSVC-like compilers the value of :variable:`CMAKE_<LANG>_FLAGS`
|
|
no longer contains warning flags like ``/W3`` by default.
|
|
See policy :policy:`CMP0092`.
|