Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
Description
If you have -Werror in CMAKE_CXX_FLAGS, it causes the detection of support for _attribute_((deprecated)) to misfire, resulting in CMake deciding that the compiler doesn't offer it, meaning that you don't get errors for use of (un-suppressed) deprecations.
The fix is to explicitly pass -DCOMPILER_HAS_DEPRECATED_ATTR:Bool=true on the CMake line as well.
Attachments
Issue Links
- duplicates
-
CXX-1348 Remove -Werror from CMAKE_CXX_FLAGS around calls to generate_export_header()
-
- Closed
-