Skip to content

Commit

Permalink
generate python code when calling PROTOBUF_GENERATE_PYTHON
Browse files Browse the repository at this point in the history
  • Loading branch information
hesmar committed Sep 25, 2017
1 parent ae55fd2 commit 0e069e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/protobuf-module.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function(PROTOBUF_GENERATE_CPP SRCS HDRS)
endif()

set(_outvar)
protobuf_generate(${append_arg} LANGUAGE cpp EXPORT_MACRO ${protobuf_generate_cpp_EXPORT_MACRO} OUT_VAR _outvar ${_import_arg} PROTOS ${_proto_files})
protobuf_generate(${_append_arg} LANGUAGE cpp EXPORT_MACRO ${protobuf_generate_cpp_EXPORT_MACRO} OUT_VAR _outvar ${_import_arg} PROTOS ${_proto_files})

set(${SRCS})
set(${HDRS})
Expand Down Expand Up @@ -49,7 +49,7 @@ function(PROTOBUF_GENERATE_PYTHON SRCS)
endif()

set(_outvar)
protobuf_generate(${append_arg} LANGUAGE cpp OUT_VAR _outvar ${_import_arg} PROTOS ${ARGN})
protobuf_generate(${_append_arg} LANGUAGE python OUT_VAR _outvar ${_import_arg} PROTOS ${ARGN})
set(${SRCS} ${_outvar} PARENT_SCOPE)
endfunction()

Expand Down

0 comments on commit 0e069e5

Please sign in to comment.