diff --git a/cmake/ProtobufGenerateCpp.cmake b/cmake/ProtobufGenerateCpp.cmake index 8a50e6e3d..977dbbc60 100644 --- a/cmake/ProtobufGenerateCpp.cmake +++ b/cmake/ProtobufGenerateCpp.cmake @@ -42,7 +42,7 @@ function(protobuf_generate_cpp) COMMAND ${_ARGS_PROTOC} ARGS - --cpp_out=${_ARGS_CXX_OUT_DIR} ${_proto_include_cli_args} ${_abs_fil} + --cpp_out=${_ARGS_CXX_OUT_DIR} ${_proto_include_cli_args} ${_fil} DEPENDS ${_abs_fil} COMMENT "Running C++ protocol buffer compiler on ${_fil}" VERBATIM