Skip to content

Commit 8397b90

Browse files
committed
fix option name for rule capnproto.cpp
1 parent f80fdc9 commit 8397b90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xmake/rules/capnproto/capnp.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ function buildcmd(target, batchcmds, sourcefile_capnp, opt)
4848
local public
4949
local fileconfig = target:fileconfig(sourcefile_capnp)
5050
if fileconfig then
51-
public = fileconfig.proto_public
52-
prefixdir = fileconfig.proto_rootdir
51+
public = fileconfig.capnp_public
52+
prefixdir = fileconfig.capnp_rootdir
5353
end
5454
local rootdir = path.join(target:autogendir(), "rules", "capnproto")
5555
local filename = path.basename(sourcefile_capnp) .. ".capnp.c++"
@@ -65,7 +65,7 @@ function buildcmd(target, batchcmds, sourcefile_capnp, opt)
6565

6666
-- add commands
6767
batchcmds:mkdir(sourcefile_dir)
68-
batchcmds:show_progress(opt.progress, "${color.build.object}compiling.proto %s", sourcefile_capnp)
68+
batchcmds:show_progress(opt.progress, "${color.build.object}compiling.capnp %s", sourcefile_capnp)
6969
local capnproto = target:pkg("capnproto")
7070
local includes = capnproto:get("sysincludedirs")
7171
local argv = {"compile"}

0 commit comments

Comments
 (0)