diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua index ade7eb62597..a5b42c0a3c5 100644 --- a/xmake/modules/private/action/require/impl/actions/install.lua +++ b/xmake/modules/private/action/require/impl/actions/install.lua @@ -381,7 +381,7 @@ function main(package) else -- build and install package to the install directory - local force_reinstall = package:data("force_reinstall") or option.get("force") + local force_reinstall = package:policy("package.install_always") or package:data("force_reinstall") or option.get("force") if force_reinstall or not package:manifest_load() then -- clear install directory