summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-12-04 22:56:26 +0800
committerruki <[email protected]>2023-12-04 22:56:26 +0800
commit4bfd44d322e9db2f5c45de96049122d225ec998d (patch)
tree5d91bb1ba768e2cd803d2247c08b541e990b0e43 /xmake/core/package/package.lua
parentb6e8d8c110b99d1ce32ee2fbe8ef351ab7d96285 (diff)
fix package.install_only
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua12
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