Skip to content

Commit

Permalink
Fix Import Abseil-cpp : Since it may conflict with other abseil, I th…
Browse files Browse the repository at this point in the history
…ink you can make a judgment when introducing abseil-cpp. If abseil is not introduced, then use find_package
  • Loading branch information
LeiZhang-Hunter committed Jun 15, 2024
1 parent 5089105 commit d6a678e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ if(WITH_PROMETHEUS)
endif()

if(WITH_ABSEIL)
find_package(absl CONFIG REQUIRED)
if(NOT TARGET absl::strings)
find_package(absl CONFIG REQUIRED)
endif()
endif()

if(WITH_OTLP_GRPC
Expand Down

0 comments on commit d6a678e

Please sign in to comment.