diff options
| author | ruki <[email protected]> | 2022-08-16 22:52:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-16 22:52:48 +0800 |
| commit | 4aeb3af55ff8ab7c1954fac444b24284f306604a (patch) | |
| tree | 54bc3d1873866551cd7b377c0c3742ae9d75b23a /xmake/plugins/project | |
| parent | 61c9bf5fe8ec9f2607c0cbd15983c3dd2054563e (diff) | |
ignore color codes
Diffstat (limited to 'xmake/plugins/project')
| -rw-r--r-- | xmake/plugins/project/cmake/cmakelists.lua | 3 | ||||
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua index 130c1ad38..5154956e6 100644 --- a/xmake/plugins/project/cmake/cmakelists.lua +++ b/xmake/plugins/project/cmake/cmakelists.lua @@ -19,6 +19,7 @@ -- -- imports +import("core.base.colors") import("core.project.project") import("core.project.config") import("core.tool.compiler") @@ -828,7 +829,7 @@ function _get_command_string(cmd, outputdir) elseif kind == "mkdir" then return string.format("${CMAKE_COMMAND} -E make_directory %s", _get_unix_path_relative_to_cmake(cmd.dir, outputdir)) elseif kind == "show" then - return string.format("echo %s", cmd.showtext) + return string.format("echo %s", colors.ignore(cmd.showtext)) end end diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index ce843d725..6fcb5a3a8 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -20,6 +20,7 @@ -- imports import("core.base.option") +import("core.base.colors") import("core.project.rule") import("core.project.config") import("core.project.project") @@ -109,7 +110,7 @@ function _get_command_string(cmd, vcxprojdir) local dir = _translate_path(cmd.dir, vcxprojdir) return string.format("if not exist \"%s\" mkdir \"%s\"", dir, dir) elseif kind == "show" then - return string.format("echo %s", cmd.showtext) + return string.format("echo %s", colors.ignore(cmd.showtext)) end end |
