From 4bfd44d322e9db2f5c45de96049122d225ec998d Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 4 Dec 2023 22:56:26 +0800 Subject: fix package.install_only --- xmake/core/package/package.lua | 12 ++++++------ 1 file 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 -- cgit v1.3.1