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 fe51f29 commit 96089d5Copy full SHA for 96089d5
cmake/SetupProtobuf.cmake
@@ -60,7 +60,11 @@ if(NOT USERVER_FORCE_DOWNLOAD_PROTOBUF)
60
61
if(Protobuf_FOUND)
62
_userver_set_protobuf_version_category()
63
- set(PROTOBUF_PROTOC $<TARGET_FILE:protobuf::protoc>)
+ if (TARGET protobuf::protoc)
64
+ set(PROTOBUF_PROTOC $<TARGET_FILE:protobuf::protoc>)
65
+ else()
66
+ set(PROTOBUF_PROTOC "${Protobuf_PROTOC_EXECUTABLE}")
67
+ endif()
68
return()
69
endif()
70
0 commit comments