diff options
| author | ruki <[email protected]> | 2021-03-05 22:41:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-05 22:41:06 +0800 |
| commit | 97e94809e0ffb871b2e8a7554ad3eb54a034c525 (patch) | |
| tree | 1f81d3047ff4b7cf615df5dacd044d606fadd5b8 /xmake/actions/install/main.lua | |
| parent | ecb7b50da9471f2ebc5d44d01c72e7860776e2c9 (diff) | |
add is_enabled
Diffstat (limited to 'xmake/actions/install/main.lua')
| -rw-r--r-- | xmake/actions/install/main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/install/main.lua b/xmake/actions/install/main.lua index 62bd9210b..68481f339 100644 --- a/xmake/actions/install/main.lua +++ b/xmake/actions/install/main.lua @@ -47,7 +47,7 @@ function _check_targets(targetname) -- filter and check targets with builtin-install script local targetnames = {} for _, target in ipairs(targets) do - if not target:isphony() and target:get("enabled") ~= false and not target:script("install") then + if not target:is_phony() and target:is_enabled() and not target:script("install") then local targetfile = target:targetfile() if targetfile and not os.isfile(targetfile) then table.insert(targetnames, target:name()) |
