Skip to content

Commit da81417

Browse files
committed
compiler_setup.cmake: specify -Wno-error=deprecated-declarations to avoid breaking the build over usage of deprecated things
1 parent bbd9fb3 commit da81417

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/compiler_setup.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ if(CXX_CLANG OR CXX_GNU)
8686
if(FIREBASE_CXX_COMPILER_FLAG_REDUNDANT_MOVE_SUPPORTED)
8787
list(APPEND common_flags -Wno-error=redundant-move)
8888
endif()
89+
90+
# Disable treating "deprecated-declarations" as an error since it's not really a problem
91+
# worth breaking the build over.
92+
CHECK_CXX_COMPILER_FLAG("-Wno-error=deprecated-declarations" FIREBASE_CXX_COMPILER_FLAG_DEPRECATED_DECLARATIONS_SUPPORTED)
93+
if(FIREBASE_CXX_COMPILER_FLAG_DEPRECATED_DECLARATIONS_SUPPORTED)
94+
list(APPEND common_flags -Wno-error=deprecated-declarations)
95+
endif()
8996
endif()
9097

9198
if(APPLE)

0 commit comments

Comments
 (0)