We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34d721d commit 77f1ba4Copy full SHA for 77f1ba4
1 file changed
cmake/SetupProtobuf.cmake
@@ -60,7 +60,7 @@ 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>)
+ set(PROTOBUF_PROTOC "${Protobuf_PROTOC_EXECUTABLE}")
64
return()
65
endif()
66
@@ -92,3 +92,4 @@ set_target_properties(libprotoc PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${Prot
92
write_package_stub(Protobuf)
93
mark_targets_as_system("${Protobuf_SOURCE_DIR}")
94
95
+set(PROTOBUF_PROTOC $<TARGET_FILE:protoc>)
0 commit comments