diff --git a/cmake/mode.common.cmake b/cmake/mode.common.cmake index a23e0ba777..f82770422f 100644 --- a/cmake/mode.common.cmake +++ b/cmake/mode.common.cmake @@ -11,7 +11,11 @@ foreach(warning ${disabled_warnings}) endif() endforeach() list(TRANSFORM _supported_warnings PREPEND "-Wno-") -string(JOIN " " CMAKE_CXX_FLAGS "-Wall" "-Werror" ${_supported_warnings}) +string(JOIN " " CMAKE_CXX_FLAGS + "-Wall" + "-Werror" + "-Wno-error=deprecated-declarations" + ${_supported_warnings}) function(default_target_arch arch) set(x86_instruction_sets i386 i686 x86_64)