summaryrefslogtreecommitdiff
path: root/xmake/modules/lib
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-19 00:58:10 +0800
committerruki <[email protected]>2022-10-19 00:58:10 +0800
commit9b1e01c0b6deb3eaae25038643e11ea482ea248a (patch)
treee0911a64e8819432483fb948915f4f85c7efb001 /xmake/modules/lib
parent78fe5e017f14b4459a36b27548d98af9485e9fff (diff)
use sysincludedirs
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