提交 df6b2056 编写于 作者: W wangguibao

Fix protobuf.cmake for CMake 3.9 and above

上级 ac259549
......@@ -122,6 +122,9 @@ macro(PROMPT_PROTOBUF_LIB)
# make `protobuf_generate_cpp` happy.
SET(Protobuf_PROTOC_EXECUTABLE ${PROTOBUF_PROTOC_EXECUTABLE})
# For CMake 3.9 and above
add_executable(protobuf::protoc ALIAS protoc)
FOREACH(dep ${protobuf_DEPS})
ADD_DEPENDENCIES(protobuf ${dep})
ADD_DEPENDENCIES(protobuf_lite ${dep})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册