diff options
| author | ruki <[email protected]> | 2017-09-22 22:37:56 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-22 09:47:39 +0800 |
| commit | 672d5ae9a9fef8a0dc5de4ed0643e8594e1cb85c (patch) | |
| tree | 4007b54189cfbb4ac366cca21735793e68aa69e7 /xmake/actions/require/install.lua | |
| parent | fe319cb58be817295c0ad610cfe411be0eff57e0 (diff) | |
add require alias
Diffstat (limited to 'xmake/actions/require/install.lua')
| -rw-r--r-- | xmake/actions/require/install.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/require/install.lua b/xmake/actions/require/install.lua index 48fc37b25..19f90257f 100644 --- a/xmake/actions/require/install.lua +++ b/xmake/actions/require/install.lua @@ -65,7 +65,7 @@ function _attach_to_targets(packages) for _, instance in ipairs(packages) do if instance:kind() ~= "binary" then - local opt = project.option(instance:fullname()) + local opt = project.option(instance:alias() or instance:fullname()) if opt and opt:enabled() then _attach_to_option(instance, opt) end |
