diff options
| author | wsw0108 <[email protected]> | 2021-07-08 21:21:20 +0800 |
|---|---|---|
| committer | wsw0108 <[email protected]> | 2021-07-08 21:21:20 +0800 |
| commit | 8397b9058714b0c54d750e5d77e2bb1d8110ed5e (patch) | |
| tree | 4233b8f416bbfad1c0c8d596e659224558129761 | |
| parent | f80fdc97ee6f25eb525f1105011e2d2fe2283d76 (diff) | |
fix option name for rule capnproto.cpp
| -rw-r--r-- | xmake/rules/capnproto/capnp.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/capnproto/capnp.lua b/xmake/rules/capnproto/capnp.lua index 05114cced..cd89147a7 100644 --- a/xmake/rules/capnproto/capnp.lua +++ b/xmake/rules/capnproto/capnp.lua @@ -48,8 +48,8 @@ function buildcmd(target, batchcmds, sourcefile_capnp, opt) local public local fileconfig = target:fileconfig(sourcefile_capnp) if fileconfig then - public = fileconfig.proto_public - prefixdir = fileconfig.proto_rootdir + public = fileconfig.capnp_public + prefixdir = fileconfig.capnp_rootdir end local rootdir = path.join(target:autogendir(), "rules", "capnproto") local filename = path.basename(sourcefile_capnp) .. ".capnp.c++" @@ -65,7 +65,7 @@ function buildcmd(target, batchcmds, sourcefile_capnp, opt) -- add commands batchcmds:mkdir(sourcefile_dir) - batchcmds:show_progress(opt.progress, "${color.build.object}compiling.proto %s", sourcefile_capnp) + batchcmds:show_progress(opt.progress, "${color.build.object}compiling.capnp %s", sourcefile_capnp) local capnproto = target:pkg("capnproto") local includes = capnproto:get("sysincludedirs") local argv = {"compile"} |
