Skip to content

Commit

Permalink
Merge 346f225 into 48a77e3
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsimantov committed Mar 8, 2024
2 parents 48a77e3 + 346f225 commit d85edf8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/external/abseil-cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

include(ExternalProject)

# Note: When updating to 20230802.0 or later, remove the PATCH_COMMAND below.
set(version 20220623.0)

ExternalProject_Add(
Expand All @@ -31,4 +32,6 @@ ExternalProject_Add(
INSTALL_COMMAND ""
TEST_COMMAND ""
HTTP_HEADER "${EXTERNAL_PROJECT_HTTP_HEADER}"

PATCH_COMMAND patch -Np1 -i ${CMAKE_CURRENT_LIST_DIR}/abseil-cpp.patch.txt
)
27 changes: 27 additions & 0 deletions cmake/external/abseil-cpp.patch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
diff --git a/absl/meta/type_traits.h b/absl/meta/type_traits.h
index d886cb30..c2a2d15e 100644
--- a/absl/meta/type_traits.h
+++ b/absl/meta/type_traits.h
@@ -35,6 +35,12 @@
#ifndef ABSL_META_TYPE_TRAITS_H_
#define ABSL_META_TYPE_TRAITS_H_

+// Added by firebase-ios-sdk/cmake/external/abseil-cpp.patch.txt
+#if __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated"
+#endif // __clang__
+
#include <cstddef>
#include <functional>
#include <type_traits>
@@ -794,4 +800,9 @@ using swap_internal::StdSwapIsUnconstrained;
ABSL_NAMESPACE_END
} // namespace absl

+// Added by firebase-ios-sdk/cmake/external/abseil-cpp.patch.txt
+#if __clang__
+#pragma clang diagnostic pop
+#endif // __clang__
+
#endif // ABSL_META_TYPE_TRAITS_H_

0 comments on commit d85edf8

Please sign in to comment.