From 23116ce64d2f92a50b1458e350243bb9a9719523 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 6 Apr 2024 00:47:23 +0800 Subject: [PATCH] improve to system/find_package --- xmake/modules/package/manager/system/find_package.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/package/manager/system/find_package.lua b/xmake/modules/package/manager/system/find_package.lua index 6ba79c3ec1f..47b07647bf5 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