summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/protobuf/proto.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/protobuf/proto.lua b/xmake/rules/protobuf/proto.lua
index 0648d6a71..cc18c5390 100644
--- a/xmake/rules/protobuf/proto.lua
+++ b/xmake/rules/protobuf/proto.lua
@@ -306,6 +306,9 @@ function build_cxfiles(target, batchjobs, sourcebatch, opt, sourcekind)
sourcefile_cx_grpc = target:autogenfile(sourcefile_proto, {rootdir = rootdir, filename = filename_grpc})
end
+ -- add includedirs
+ target:add("includedirs", sourcefile_dir, {public = public})
+
-- add objectfile
local objectfile = target:objectfile(sourcefile_cx)
table.insert(sourcebatch_cx.sourcefiles, sourcefile_cx)