We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c19dee commit 91bfb07Copy full SHA for 91bfb07
cmake/external/protobuf.cmake
@@ -26,6 +26,7 @@ UNSET_VAR(PROTOBUF_PROTOC_LIBRARY)
26
UNSET_VAR(PROTOBUF_LITE_LIBRARY)
27
UNSET_VAR(PROTOBUF_LIBRARY)
28
UNSET_VAR(PROTOBUF_INCLUDE_DIR)
29
+UNSET_VAR(Protobuf_PROTOC_EXECUTABLE)
30
31
if(NOT COMMAND protobuf_generate_python) # before cmake 3.4, protobuf_genrerate_python is not defined.
32
function(protobuf_generate_python SRCS)
@@ -120,7 +121,6 @@ macro(PROMPT_PROTOBUF_LIB)
120
121
# FIND_Protobuf.cmake uses `Protobuf_PROTOC_EXECUTABLE`.
122
# make `protobuf_generate_cpp` happy.
123
SET(Protobuf_PROTOC_EXECUTABLE ${PROTOBUF_PROTOC_EXECUTABLE})
-
124
FOREACH(dep ${protobuf_DEPS})
125
ADD_DEPENDENCIES(protobuf ${dep})
126
ADD_DEPENDENCIES(protobuf_lite ${dep})
0 commit comments