aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Markus Heß <hessi88@googlemail.com>2017-09-22 13:12:59 +0200
committerGravatar Markus Heß <hessi88@googlemail.com>2017-09-25 11:08:12 +0200
commit0e069e5a2dc405741179b0170b5cf2ea338fc634 (patch)
tree424731da75b81c41397455f565d77ae2de4f43b2
parentae55fd2cc52849004de21a7e26aed7bfe393eaed (diff)
generate python code when calling PROTOBUF_GENERATE_PYTHON
-rw-r--r--cmake/protobuf-module.cmake.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/protobuf-module.cmake.in b/cmake/protobuf-module.cmake.in
index 2e7c021c..85f891be 100644
--- a/cmake/protobuf-module.cmake.in
+++ b/cmake/protobuf-module.cmake.in
@@ -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})
@@ -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()