diff --git a/CMakeLists.txt b/CMakeLists.txt index 7328ef7dee..fb627e5268 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,11 +18,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") # GCC-specific fixes - add_compile_options(-Wno-unknown-pragmas -Wno-subobject-linkage) + add_compile_options(-Wno-unknown-pragmas -Wno-subobject-linkage -Wno-error=deprecated-declarations) # -Wno-subobject-linkage can be removed when we upgrade GCC version to at least 13.3 elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") # Clang-specific fixes - add_compile_options(-Wno-unknown-warning-option) # Ignore unknown warning options + add_compile_options(-Wno-unknown-warning-option -Wno-error=deprecated-declarations) # Ignore unknown warning options elseif(MSVC) # MSVC-specific fixes add_compile_options(/wd4068) # Ignore unknown pragmas