summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/protobuf/xmake.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/rules/protobuf/xmake.lua b/xmake/rules/protobuf/xmake.lua
index 31446eb8e..c7fa4d3cb 100644
--- a/xmake/rules/protobuf/xmake.lua
+++ b/xmake/rules/protobuf/xmake.lua
@@ -20,6 +20,7 @@
-- define rule: protobuf.cpp
rule("protobuf.cpp")
+ add_deps("c++")
set_extensions(".proto")
on_load(function(target)
import("proto").load(target, "cxx")
@@ -34,6 +35,7 @@ rule("protobuf.cpp")
-- define rule: protobuf.c
rule("protobuf.c")
+ add_deps("c++")
set_extensions(".proto")
on_load(function(target)
import("proto").load(target, "cc")