diff options
| author | ruki <[email protected]> | 2022-05-31 00:49:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-31 00:49:52 +0800 |
| commit | 50c5f96edb3f6c7a45e1bd24c921ec2c0afac33f (patch) | |
| tree | d31984135a64d2ec002742b8a4831d50464ea1eb /xmake/plugins/project/cmake/cmakelists.lua | |
| parent | 4c4c0c945be1fa76af7d90f46d85fb514a55b6d9 (diff) | |
improve path and cmakelists
Diffstat (limited to 'xmake/plugins/project/cmake/cmakelists.lua')
| -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 4ccb67670..e94f4e2f4 100644 --- a/xmake/plugins/project/cmake/cmakelists.lua +++ b/xmake/plugins/project/cmake/cmakelists.lua @@ -661,7 +661,7 @@ function _get_command_string(cmd, outputdir) end table.insert(argv, v) end - local command = cmd.program .. " " .. os.args(argv) + local command = _get_unix_path_relative_to_cmake(cmd.program) .. " " .. os.args(argv) if opt and opt.curdir then command = "${CMAKE_COMMAND} -E chdir " .. _get_unix_path_relative_to_cmake(opt.curdir, outputdir) .. " " .. command end |
