summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/sandbox/modules/import/core/project/project.lua8
1 files 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