diff options
| author | ruki <[email protected]> | 2023-08-30 07:25:38 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-30 07:25:38 +0800 |
| commit | 44c70cdcb4f28e2499fb893f4d2e1d17e79bac22 (patch) | |
| tree | 7b7476512251af2e3a50c2bc6b6a23a7e58156e0 | |
| parent | ea1f3a95adba361e27d387f0b5227cd4ce458440 (diff) | |
| parent | b652368986efd6bba607855a5bfb8a679d01e085 (diff) | |
Merge pull request #4146 from Latias94/fix_cmakelists_gen
fix: add `_escape_path` to cmd program
| -rw-r--r-- | xmake/plugins/project/cmake/cmakelists.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua index d675e8f4f..f0824e1eb 100644 --- a/xmake/plugins/project/cmake/cmakelists.lua +++ b/xmake/plugins/project/cmake/cmakelists.lua @@ -917,7 +917,7 @@ function _get_command_string(cmd, outputdir) for _, v in ipairs(cmd.argv) do table.insert(argv, _translate_flag(v, outputdir)) end - local command = cmd.program .. " " .. os.args(argv) + local command = _escape_path(cmd.program) .. " " .. os.args(argv) if opt and opt.curdir then command = "${CMAKE_COMMAND} -E chdir " .. _get_relative_unix_path_to_cmake(opt.curdir, outputdir) .. " " .. command end |
