summaryrefslogtreecommitdiff
path: root/core/src/lua-cjson
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-17 20:27:08 +0800
committerruki <[email protected]>2022-12-17 20:27:52 +0800
commit5d7efff981b2bb2c8806eb57354a73dac7ccd2f1 (patch)
tree4f52d578a8d2e31f116a73da6ff0acfb527326ee /core/src/lua-cjson
parent6bea48d5f42e1baf8cc2a6080ca5cf62aaac9766 (diff)
find lua
Diffstat (limited to 'core/src/lua-cjson')
-rwxr-xr-xcore/src/lua-cjson/xmake.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/lua-cjson/xmake.sh b/core/src/lua-cjson/xmake.sh
index 7ee38cc10..42e767218 100755
--- a/core/src/lua-cjson/xmake.sh
+++ b/core/src/lua-cjson/xmake.sh
@@ -4,7 +4,11 @@ target "lua_cjson"
set_kind "static"
set_default false
set_warnings "all"
- add_deps "lua"
+ if has_config "lua"; then
+ add_options "lua" "{public}"
+ else
+ add_deps "lua"
+ fi
add_files "lua-cjson/dtoa.c"
add_files "lua-cjson/lua_cjson.c"
add_files "lua-cjson/strbuf.c"