From 87ab617a9baffa4e6d4d8a8a7560fa683c9a3995 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 11 Aug 2025 22:48:45 +0800 Subject: fix install opt --- xmake/modules/target/action/install/main.lua | 16 ++++++++++++---- 1 file 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 -- cgit v1.3.1