summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/sandbox/modules/import/core/project/project.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/import/core/project/project.lua b/xmake/core/sandbox/modules/import/core/project/project.lua
index eaa363ba0..6d35abaa0 100644
--- a/xmake/core/sandbox/modules/import/core/project/project.lua
+++ b/xmake/core/sandbox/modules/import/core/project/project.lua
@@ -150,6 +150,7 @@ end
-- end
--
function sandbox_core_project._config_targets(opt)
+ opt = opt or {}
for _, target in ipairs(table.wrap(project.ordertargets())) do
if target:is_enabled() then
sandbox_core_project._config_target(target, opt)