summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-05 23:40:15 +0800
committerGitHub <[email protected]>2024-04-05 23:40:15 +0800
commit537971777a7b6086546d234ea9f5975464903c7e (patch)
tree99003309c767b79f8467ddf052241850a02a545f
parent982a307fa363ae022554df2afaa3f922c5bb0986 (diff)
parent23116ce64d2f92a50b1458e350243bb9a9719523 (diff)
Merge pull request #4936 from xmake-io/findlib
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