diff options
| -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 |
