summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-29 22:56:37 +0800
committerruki <[email protected]>2023-08-29 22:56:37 +0800
commitcc0bb72f305ed4b1df69bb3d4c77583ef1bc77db (patch)
treebf02f484abc1d053eaae8ce49f58b245f3792fe3
parent8fe8d75c330480b2be064ad877b9f9229fd43738 (diff)
fix cmakelists generator #4130
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index e4cf59e96..d675e8f4f 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 = _get_relative_unix_path_to_cmake(cmd.program) .. " " .. os.args(argv)
+ local command = 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