diff options
| author | ruki <[email protected]> | 2024-07-25 23:30:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-25 23:30:12 +0800 |
| commit | a066a32e9c668967fb11486e77f92b11c1a22f5d (patch) | |
| tree | 61ee8e5d14992ae5c6b0f3262edcf5461d5b070f | |
| parent | adce06e36d83b7d970e05f997a459fa3d3a297a9 (diff) | |
improve conan:find_package #5358
| -rw-r--r-- | xmake/modules/package/manager/conan/find_package.lua | 8 |
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 |
