File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,6 @@ if(WITH_OTLP_GRPC
429429 # Latest Protobuf imported targets and without legacy module support
430430 if (TARGET protobuf::protoc)
431431 if (CMAKE_CROSSCOMPILING AND Protobuf_PROTOC_EXECUTABLE)
432- # Some versions of FindProtobuf.cmake uses mixed case instead of uppercase
433432 set (PROTOBUF_PROTOC_EXECUTABLE ${Protobuf_PROTOC_EXECUTABLE} )
434433 else ()
435434 project_build_tools_get_imported_location(PROTOBUF_PROTOC_EXECUTABLE
@@ -440,6 +439,9 @@ if(WITH_OTLP_GRPC
440439 set (PROTOBUF_PROTOC_EXECUTABLE protobuf::protoc)
441440 endif ()
442441 endif ()
442+ elseif (Protobuf_PROTOC_EXECUTABLE)
443+ # Some versions of FindProtobuf.cmake uses mixed case instead of uppercase
444+ set (PROTOBUF_PROTOC_EXECUTABLE ${Protobuf_PROTOC_EXECUTABLE} )
443445 endif ()
444446 include (CMakeDependentOption)
445447
You can’t perform that action at this time.
0 commit comments