Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ 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))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@owent mentioned, WITH_ABSEIL is needed even CMAKE_TOOLCHAIN_FILE is defined (like vcpkg is used).

Does this fix the issue? I think we need more details on it.

if(NOT WITH_ABSEIL)
message(
FATAL_ERROR
Expand Down
Loading