summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-10 23:09:04 +0800
committerruki <[email protected]>2020-11-10 23:09:04 +0800
commit8ff5cc5e71f34af2f6ed538fb33950db7e6196a5 (patch)
tree6efe56057af6f070e998fcfcc570004eed825de1 /xmake/core/package/package.lua
parentc84a362b39d566dc21160b8171c5ec389dbc5e3b (diff)
switch to external include directories for package
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index b6494e637..232bfc23c 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -869,6 +869,12 @@ function _instance:fetch(opt)
system = nil
end
+ -- use sysincludedirs/-isystem instead of -I?
+ local external = self:requireinfo().external
+ if external == nil then
+ external = true
+ end
+
-- fetch binary tool?
fetchinfo = nil
local isSys = nil
@@ -913,6 +919,7 @@ function _instance:fetch(opt)
cachekey = "fetch_package_xmake",
buildhash = self:buildhash(),
pkgconfigs = self:configs(),
+ external = external,
force = opt.force})
if fetchinfo then
isSys = self._isSys
@@ -927,6 +934,7 @@ function _instance:fetch(opt)
pkgconfigs = self:configs(),
buildhash = self:is3rd() and self:buildhash(), -- only for 3rd package manager, e.g. go:: ..
cachekey = "fetch_package_system",
+ external = external,
system = true})
if fetchinfo then
isSys = true