From a42017e592760aebdaa633cd931cb3447ecd5b29 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Sun, 22 Sep 2024 16:46:23 +0000 Subject: [PATCH] Generate c++ protos w/ relative paths We shouldn't be generating protos defined outside of the current CMakeLists.txt dir. --- cmake/ProtobufGenerateCpp.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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