summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-08-11 22:48:45 +0800
committerruki <[email protected]>2025-08-11 22:48:45 +0800
commit87ab617a9baffa4e6d4d8a8a7560fa683c9a3995 (patch)
treedf6ce8fabd9f19692180a899ef38fb15e89b2264
parent2f471daf1e23171b0397a3bcca6fd393ce4e8c8d (diff)
fix install opt
-rw-r--r--xmake/modules/target/action/install/main.lua16
1 files changed, 12 insertions, 4 deletions
diff --git a/xmake/modules/target/action/install/main.lua b/xmake/modules/target/action/install/main.lua
index ab4e46dcc..ac731a3a8 100644
--- a/xmake/modules/target/action/install/main.lua
+++ b/xmake/modules/target/action/install/main.lua
@@ -273,10 +273,18 @@ end
function main(target, opt)
opt = opt or {}
- opt.headers = opt.headers or true
- opt.binaries = opt.binaries or true
- opt.libraries = opt.libraries or true
- opt.packages = opt.packages or true
+ if opt.headers == nil then
+ opt.headers = true
+ end
+ if opt.binaries == nil then
+ opt.binaries = true
+ end
+ if opt.libraries == nil then
+ opt.libraries = true
+ end
+ if opt.packages == nil then
+ opt.packages = true
+ end
local installdir = opt.installdir or target:installdir()
if not installdir then