Skip to content

Commit 33d1d10

Browse files
committed
improve tests
1 parent 52dd798 commit 33d1d10

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/projects/c++/protobuf/xmake.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ target("test")
55
set_kind("binary")
66
set_languages("c++11")
77
add_packages("protobuf-cpp")
8+
add_rules("protobuf.cpp")
89
add_files("src/*.cpp")
9-
add_files("src/**.proto", {rules = "protobuf.cpp", proto_rootdir = "src"})
10+
add_files("src/**.proto", {proto_rootdir = "src"})
1011

tests/projects/c/protobuf/xmake.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ add_requires("protobuf-c")
44
target("test")
55
set_kind("binary")
66
add_packages("protobuf-c")
7+
add_rules("protobuf.c")
78
add_files("src/*.c")
8-
add_files("src/**.proto", {rules = "protobuf.c", proto_rootdir = "src"})
9+
add_files("src/**.proto", {proto_rootdir = "src"})
910

0 commit comments

Comments
 (0)