summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-25 23:30:12 +0800
committerruki <[email protected]>2024-07-25 23:30:12 +0800
commita066a32e9c668967fb11486e77f92b11c1a22f5d (patch)
tree61ee8e5d14992ae5c6b0f3262edcf5461d5b070f
parentadce06e36d83b7d970e05f997a459fa3d3a297a9 (diff)
improve conan:find_package #5358
-rw-r--r--xmake/modules/package/manager/conan/find_package.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/conan/find_package.lua b/xmake/modules/package/manager/conan/find_package.lua
index dad51b853..d8e9ac477 100644
--- a/xmake/modules/package/manager/conan/find_package.lua
+++ b/xmake/modules/package/manager/conan/find_package.lua
@@ -101,6 +101,14 @@ function _conan_get_buildinfo(name, opt)
end
end
+ -- remove unused frameworks for linux
+ -- @see https://github.com/xmake-io/xmake/issues/5358
+ local plat = opt.plat
+ if found and buildinfo and plat ~= "macosx" and plat ~= "iphoneos" then
+ buildinfo.frameworks = nil
+ buildinfo.frameworkdirs = nil
+ end
+
if found then
return buildinfo, result
end