diff options
| author | ruki <[email protected]> | 2023-12-04 22:56:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-12-04 22:56:26 +0800 |
| commit | 4bfd44d322e9db2f5c45de96049122d225ec998d (patch) | |
| tree | 5d91bb1ba768e2cd803d2247c08b541e990b0e43 /xmake/core/package/package.lua | |
| parent | b6e8d8c110b99d1ce32ee2fbe8ef351ab7d96285 (diff) | |
fix package.install_only
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index babea1717..1073c0a45 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -1773,12 +1773,6 @@ function _instance:fetch(opt) return fetchinfo end - -- install only? - local project = package._project() - if project and project.policy("package.install_only") then - return - end - -- fetch the require version local require_ver = opt.version or self:requireinfo().version if not self:is_thirdparty() and not require_ver:find('.', 1, true) then @@ -1799,6 +1793,12 @@ function _instance:fetch(opt) system = nil end + -- install only? + local project = package._project() + if project and project.policy("package.install_only") then + system = false + end + -- use sysincludedirs/-isystem instead of -I? local external if opt.external ~= nil then |
