mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
The `/GR` flag has been on by default since MSVC cl 14.0 from VS 2005. Remove it from the default flags to make it easier for projects to pass `/GR-` themselves to turn it off. Projects may be using string processing to replace `/GR` with another flag, so we cannot simply drop it. Add a policy to drop it in a compatible way. Fixes: #21428
8 lines
225 B
ReStructuredText
8 lines
225 B
ReStructuredText
msvc-no-GR
|
|
----------
|
|
|
|
* With MSVC-like compilers the value of
|
|
:variable:`CMAKE_CXX_FLAGS <CMAKE_<LANG>_FLAGS>` no longer contains
|
|
the ``/GR`` flag for runtime type information by default.
|
|
See policy :policy:`CMP0117`.
|