summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-04-13 00:59:47 +0800
committerruki <[email protected]>2021-04-13 00:59:47 +0800
commit317745583da0e5c940f6e300c5f6163eb800efbf (patch)
tree77b0bce7ff57ad6d89a0633dcdc15bda8659c094 /xmake/core/package/package.lua
parent351faa77810f7e0c28d74c55e7c18a7a86e49a5d (diff)
improve apt find_package
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua9
1 files changed, 1 insertions, 8 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index f564a6a69..3c2f36e75 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1095,15 +1095,8 @@ function _instance:_fetch_library(opt)
if on_fetch then
fetchinfo = on_fetch(self, {force = opt.force,
system = opt.system,
+ external = opt.external,
require_version = opt.require_version})
- if fetchinfo then
- -- convert includedirs to sysincludedirs if external headers are enabled
- -- in order to simplify user configuration, in the package definition, we always use includedirs
- if opt.external then
- fetchinfo.sysincludedirs = fetchinfo.includedirs
- fetchinfo.includedirs = nil
- end
- end
end
if fetchinfo == nil then
if opt.system then