Skip to content

Commit 38d387a

Browse files
AtifChylceWolf
authored andcommitted
fix: mkdir .\./output_dir/ error on windows
1 parent 8a5a7ee commit 38d387a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lua/cmake-tools/config.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ function Config:update_build_dir(build_dir, no_expand_build_dir)
8484
"no_expand_build_dir needs to be a string or function returning string path to the build_directory"
8585
)
8686
end
87+
88+
if require("cmake-tools.osys").iswin32 then
89+
build_dir = build_dir:gsub("/", "\\")
90+
end
91+
8792
local build_path = Path:new(build_dir)
8893
if build_path:is_absolute() then
8994
self.build_directory = Path:new(build_dir)

0 commit comments

Comments
 (0)