We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96089d5 commit 6627ea5Copy full SHA for 6627ea5
cmake/SetupProtobuf.cmake
@@ -60,10 +60,10 @@ if(NOT USERVER_FORCE_DOWNLOAD_PROTOBUF)
60
61
if(Protobuf_FOUND)
62
_userver_set_protobuf_version_category()
63
- if (TARGET protobuf::protoc)
64
- set(PROTOBUF_PROTOC $<TARGET_FILE:protobuf::protoc>)
65
- else()
+ if (Protobuf_PROTOC_EXECUTABLE)
66
set(PROTOBUF_PROTOC "${Protobuf_PROTOC_EXECUTABLE}")
+ elseif (TARGET protobuf::protoc)
+ set(PROTOBUF_PROTOC $<TARGET_FILE:protobuf::protoc>)
67
endif()
68
return()
69
0 commit comments