-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Build
-
None
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.
- duplicates
-
CXX-1348 Remove -Werror from CMAKE_CXX_FLAGS around calls to generate_export_header()
- Closed