diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2017-06-19 12:11:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-19 12:11:52 +0200 |
commit | b82bfa4e95f0bc90c45c3eff8f86c701b4769f74 (patch) | |
tree | 81c0690785aee48e6ac712505d28809243d88b70 /templates | |
parent | c39e8ddd0a7319168e9aaf1fe131ab9fc845c6f5 (diff) | |
parent | 6fe1d803359fdf48813602521cd6c1a3b09e75bf (diff) |
Merge pull request #11469 from jtattermusch/cmake_explicit_protoc
Explicitly use built protoc for CMake build
Diffstat (limited to 'templates')
-rw-r--r-- | templates/CMakeLists.txt.template | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template index 53ae543c4c..0cc2ae8020 100644 --- a/templates/CMakeLists.txt.template +++ b/templates/CMakeLists.txt.template @@ -349,7 +349,7 @@ <%text>"${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}_mock.grpc.pb.h"</%text> <%text>"${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.cc"</%text> <%text>"${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.h"</%text> - COMMAND <%text>${_gRPC_PROTOBUF_PROTOC}</%text> + COMMAND <%text>$<TARGET_FILE:${_gRPC_PROTOBUF_PROTOC}></%text> ARGS --grpc_out=<%text>generate_mock_code=true:${_gRPC_PROTO_GENS_DIR}</%text> --cpp_out=<%text>${_gRPC_PROTO_GENS_DIR}</%text> --plugin=protoc-gen-grpc=$<TARGET_FILE:grpc_cpp_plugin> |