Skip to content

Commit eae6eda

Browse files
committed
Alias for protobuf targets, workaround for protobuf 3.5.2 source
1 parent 4f77ab4 commit eae6eda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/protobuf.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ macro(configure_protobuf)
55
option(protobuf_BUILD_SHARED_LIBS "" ON)
66
option(protobuf_BUILD_PROTOC_BINARIES "" ON)
77
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/protobuf/cmake)
8+
add_executable(protobuf::protoc ALIAS protoc)
9+
add_library(protobuf::libprotobuf ALIAS libprotobuf)
10+
add_library(protobuf::libprotobuf-lite ALIAS libprotobuf-lite)
811
endmacro()

0 commit comments

Comments
 (0)