summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/progress.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/utils/progress.lua')
-rw-r--r--xmake/modules/utils/progress.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/utils/progress.lua b/xmake/modules/utils/progress.lua
index 40cab5ec3..3e7598ac2 100644
--- a/xmake/modules/utils/progress.lua
+++ b/xmake/modules/utils/progress.lua
@@ -378,7 +378,7 @@ end
-- set the associated target name for the progress object (coroutine-local)
-- it's safe to call with non-table progress (e.g. number), it will be ignored
function set_target(progress, target)
- if type(progress) == "table" and progress.set then
+ if _is_show_target_enabled() and type(progress) == "table" and progress.set then
progress:set("target_name", target:fullname())
end
end