diff --git a/CMakeLists.txt b/CMakeLists.txt index 76a5ebce5..1a0c2f4c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,10 +51,13 @@ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG OR APPLE) -Wshadow # -Wconversion # FIXME -Werror - -Wno-unknown-pragmas # We use pragmas to disable warnings we understand. + # Allow deprecation warnings to not be treated as errors + -Wno-error=deprecated-declarations + # We use pragmas to disable warnings we understand. # So we need to disable the warning about pragmas. - -Wno-unknown-warning-option # Disable warnings about disabling warnings we have - # disabled. + -Wno-unknown-pragmas + # Disable warnings about disabling warnings we have disabled. + -Wno-unknown-warning-option ) if (APPLE)