From 07f422a285bbd5e7b6959ddf8b1b6a55339f0426 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 4 Jul 2024 00:51:40 +0800 Subject: fix #5304 --- xmake/core/sandbox/modules/import/core/project/project.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/xmake/core/sandbox/modules/import/core/project/project.lua b/xmake/core/sandbox/modules/import/core/project/project.lua index 401fc9d61..c5f54dc05 100644 --- a/xmake/core/sandbox/modules/import/core/project/project.lua +++ b/xmake/core/sandbox/modules/import/core/project/project.lua @@ -200,12 +200,8 @@ end -- load project targets function sandbox_core_project.load_targets(opt) - local loaded = sandbox_core_project._LOADED - if not loaded then - sandbox_core_project._LOADED = true - sandbox_core_project._load_package_rules_for_targets() - sandbox_core_project._config_targets(opt) - end + sandbox_core_project._load_package_rules_for_targets() + sandbox_core_project._config_targets(opt) end -- get the filelock of the whole project directory -- cgit v1.3.1