summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/cmake
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-29 23:23:00 +0800
committerruki <[email protected]>2025-10-29 23:23:00 +0800
commit6871f31ec3fe4cdc4199c57c86f8371752f4e75b (patch)
tree6d33f4ead7e2563d5529e508426547d19e3224da /xmake/plugins/project/cmake
parentb5e75fee5a983a8ea89c70743cb74b464f7a5735 (diff)
improve batchcmds:show
Diffstat (limited to 'xmake/plugins/project/cmake')
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index a4d8361e1..167d4bb5f 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -1222,8 +1222,9 @@ function _get_command_string(cmd, outputdir)
return string.format("cd %s", _get_relative_unix_path_to_cmake(cmd.dir, outputdir))
elseif kind == "mkdir" then
return string.format("${CMAKE_COMMAND} -E make_directory %s", _get_relative_unix_path_to_cmake(cmd.dir, outputdir))
- elseif kind == "show" then
- local text = colors.ignore(cmd.showtext)
+ elseif kind == "show" or kind == "show_progress" then
+ local text = string.format(cmd.format, table.unpack(cmd.argv))
+ text = colors.ignore(text)
-- we need to translate paths in text
-- https://github.com/xmake-io/xmake/issues/6553
if is_host("windows") then