diff options
author | 2017-12-22 13:46:25 -0800 | |
---|---|---|
committer | 2017-12-22 13:46:25 -0800 | |
commit | eb64fadfce7126da120dc0e8e7e09a13e83e9903 (patch) | |
tree | e15305e95bae3d8bbf9fe11ae8556dbe1693cbd2 /src/compiler/cpp_plugin.cc | |
parent | e33d0272fd5b16521848535a98b6dbc8bd83233a (diff) |
Provide a way to use custom search path for gmock.h
Diffstat (limited to 'src/compiler/cpp_plugin.cc')
-rw-r--r-- | src/compiler/cpp_plugin.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/cpp_plugin.cc b/src/compiler/cpp_plugin.cc index adac0e23d3..661282f880 100644 --- a/src/compiler/cpp_plugin.cc +++ b/src/compiler/cpp_plugin.cc @@ -78,6 +78,8 @@ class CppGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator { *error = grpc::string("Invalid parameter: ") + *parameter_string; return false; } + } else if (param[0] == "gmock_search_path") { + generator_parameters.gmock_search_path = param[1]; } else { *error = grpc::string("Unknown parameter: ") + *parameter_string; return false; |