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/cmake/cmakelists.lua | |
| parent | 61c9bf5fe8ec9f2607c0cbd15983c3dd2054563e (diff) | |
ignore color codes
Diffstat (limited to 'xmake/plugins/project/cmake/cmakelists.lua')
| -rw-r--r-- | xmake/plugins/project/cmake/cmakelists.lua | 3 |
1 files changed, 2 insertions, 1 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 |
