summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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