summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-06 00:47:23 +0800
committerruki <[email protected]>2024-04-06 00:47:23 +0800
commit23116ce64d2f92a50b1458e350243bb9a9719523 (patch)
tree99003309c767b79f8467ddf052241850a02a545f
parent982a307fa363ae022554df2afaa3f922c5bb0986 (diff)
improve to system/find_package
-rw-r--r--xmake/modules/package/manager/system/find_package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/system/find_package.lua b/xmake/modules/package/manager/system/find_package.lua
index 6ba79c3ec..47b07647b 100644
--- a/xmake/modules/package/manager/system/find_package.lua
+++ b/xmake/modules/package/manager/system/find_package.lua
@@ -73,7 +73,7 @@ function main(name, opt)
-- then they can't be detected early in the fetch and we have to disable system.find_package
-- FIXME
local package = opt.package
- if package and not _check_package_toolchains(package) then
+ if package and package:toolchains() and not _check_package_toolchains(package) then
return
end