From 0647ebc1f3fd014d15712f730d175e96378eb4f2 Mon Sep 17 00:00:00 2001 From: zjyhjqs Date: Mon, 11 Sep 2023 23:19:34 +0800 Subject: note that system package is not supported currently --- xmake/modules/private/action/require/impl/install_packages.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua index 22dcbfe48..78b24c38e 100644 --- a/xmake/modules/private/action/require/impl/install_packages.lua +++ b/xmake/modules/private/action/require/impl/install_packages.lua @@ -733,7 +733,11 @@ function main(requires, opt) -- exists not found packages? if #packages_not_found > 0 then - cprint("${bright color.warning}note: ${clear}the following packages were not found on your system, try again after installing them:") + if packages_not_found[1]:is_cross() then + cprint("${bright color.warning}note: ${clear}system package is not supported for cross-compilation currently, the following system packages cannot be found:") + else + cprint("${bright color.warning}note: ${clear}the following packages were not found on your system, try again after installing them:") + end for _, instance in ipairs(packages_not_found) do print(" -> %s %s", instance:displayname(), instance:version_str() or "") end -- cgit v1.3.1