Skip to content

Commit 77f1ba4

Browse files
committed
restore protoc target from cpm
1 parent 34d721d commit 77f1ba4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmake/SetupProtobuf.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if(NOT USERVER_FORCE_DOWNLOAD_PROTOBUF)
6060

6161
if(Protobuf_FOUND)
6262
_userver_set_protobuf_version_category()
63-
set(PROTOBUF_PROTOC $<TARGET_FILE:protobuf::protoc>)
63+
set(PROTOBUF_PROTOC "${Protobuf_PROTOC_EXECUTABLE}")
6464
return()
6565
endif()
6666
endif()
@@ -92,3 +92,4 @@ set_target_properties(libprotoc PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${Prot
9292
write_package_stub(Protobuf)
9393
mark_targets_as_system("${Protobuf_SOURCE_DIR}")
9494
_userver_set_protobuf_version_category()
95+
set(PROTOBUF_PROTOC $<TARGET_FILE:protoc>)

0 commit comments

Comments
 (0)