From 835dfe13cc65031f0c517d010819e9215cfad9bb Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 25 Jun 2023 11:38:08 +0800 Subject: add c++ rule for proto #3881 --- xmake/rules/protobuf/xmake.lua | 2 ++ 1 file changed, 2 insertions(+) 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") -- cgit v1.3.1