Skip to content

Commit ce1df7d

Browse files
committed
PROTOBUF_PROTOC from protobuf target
1 parent 77f1ba4 commit ce1df7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/SetupProtobuf.cmake

Lines changed: 1 addition & 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 "${Protobuf_PROTOC_EXECUTABLE}")
63+
set(PROTOBUF_PROTOC $<TARGET_FILE:protobuf::protoc>)
6464
return()
6565
endif()
6666
endif()

0 commit comments

Comments
 (0)