Skip to content

Commit 91bfb07

Browse files
committed
Unset PROTOBUF_EXEC
1 parent 6c19dee commit 91bfb07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/external/protobuf.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ UNSET_VAR(PROTOBUF_PROTOC_LIBRARY)
2626
UNSET_VAR(PROTOBUF_LITE_LIBRARY)
2727
UNSET_VAR(PROTOBUF_LIBRARY)
2828
UNSET_VAR(PROTOBUF_INCLUDE_DIR)
29+
UNSET_VAR(Protobuf_PROTOC_EXECUTABLE)
2930

3031
if(NOT COMMAND protobuf_generate_python) # before cmake 3.4, protobuf_genrerate_python is not defined.
3132
function(protobuf_generate_python SRCS)
@@ -120,7 +121,6 @@ macro(PROMPT_PROTOBUF_LIB)
120121
# FIND_Protobuf.cmake uses `Protobuf_PROTOC_EXECUTABLE`.
121122
# make `protobuf_generate_cpp` happy.
122123
SET(Protobuf_PROTOC_EXECUTABLE ${PROTOBUF_PROTOC_EXECUTABLE})
123-
124124
FOREACH(dep ${protobuf_DEPS})
125125
ADD_DEPENDENCIES(protobuf ${dep})
126126
ADD_DEPENDENCIES(protobuf_lite ${dep})

0 commit comments

Comments
 (0)