File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 258258
259259function Config :get_launch_target_from_info (target_info )
260260 local target_path = target_info [" artifacts" ][1 ][" path" ]
261+ if require (" cmake-tools.osys" ).iswin32 then
262+ target_path = target_path :gsub (" /" , " \\ " )
263+ end
261264 target_path = Path :new (target_path )
262265 if not target_path :is_absolute () then
263266 -- then it is a relative path, based on build directory
Original file line number Diff line number Diff line change @@ -1403,7 +1403,7 @@ function cmake.create_regenerate_on_save_autocmd()
14031403
14041404 local cwd = config .cwd
14051405 if require (" cmake-tools.osys" ).iswin32 then
1406- cwd = config .cwd :gsub (" \\ " , " /" )
1406+ cwd = config .cwd :gsub (" \\ " , " /" )
14071407 end
14081408
14091409 local presets_exists = config .base_settings .use_preset and Presets .exists (config .cwd )
You can’t perform that action at this time.
0 commit comments