Skip to content

Commit

Permalink
Update CMakeLists.txt - Check protobuf abseil dependency only when th…
Browse files Browse the repository at this point in the history
…ere is no CMAKE_TOOLCHAIN_FILE)
  • Loading branch information
meastp authored Sep 4, 2024
1 parent 7f785b5 commit 35c1d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ if(WITH_OTLP_GRPC
OR WITH_OTLP_HTTP
OR WITH_OTLP_FILE)
find_package(Protobuf)
if(Protobuf_VERSION AND Protobuf_VERSION VERSION_GREATER_EQUAL "3.22.0")
if(Protobuf_VERSION AND Protobuf_VERSION VERSION_GREATER_EQUAL "3.22.0" AND (NOT DEFINED CMAKE_TOOLCHAIN_FILE))
if(NOT WITH_ABSEIL)
message(
FATAL_ERROR
Expand Down

0 comments on commit 35c1d14

Please sign in to comment.