summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-19 23:17:28 +0800
committerruki <[email protected]>2023-01-19 23:17:28 +0800
commit693a5383c31b1c5809fcc48bb17b834c52c50668 (patch)
tree3603f4226b719fd4d3844977c352e96794561acb
parentcb91361e8e1af7591a6c4eece6b8c7022961a610 (diff)
fix external option
-rwxr-xr-xcore/src/xmake/xmake.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/xmake/xmake.sh b/core/src/xmake/xmake.sh
index d4195c2d0..709ff525b 100755
--- a/core/src/xmake/xmake.sh
+++ b/core/src/xmake/xmake.sh
@@ -25,7 +25,9 @@ target "xmake"
add_deps "luajit"
fi
else
- add_deps "lua_cjson"
+ if ! has_config "external"; then
+ add_deps "lua_cjson"
+ fi
if has_config "lua"; then
add_options "lua" "{public}"
elif ! has_config "external"; then