summaryrefslogtreecommitdiff
path: root/xmake/modules/lib
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/lib')
-rw-r--r--xmake/modules/lib/detect/find_package.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/lib/detect/find_package.lua b/xmake/modules/lib/detect/find_package.lua
index d3c9e57d1..dc1c92848 100644
--- a/xmake/modules/lib/detect/find_package.lua
+++ b/xmake/modules/lib/detect/find_package.lua
@@ -112,6 +112,11 @@ function main(name, opt)
if result and result.includedirs and opt.external then
result.sysincludedirs = result.includedirs
result.includedirs = nil
+ local components_base = result.components and result.components.__base
+ if components_base then
+ components_base.sysincludedirs = components_base.includedirs
+ components_base.includedirs = nil
+ end
end
-- cache result