We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$(hostSystemName}
1 parent 1b5892f commit be874b9Copy full SHA for be874b9
1 file changed
lua/cmake-tools/preset.lua
@@ -1,4 +1,5 @@
1
local Path = require("plenary.path")
2
+local osys = require("cmake-tools.osys")
3
4
local Preset = {}
5
@@ -25,7 +26,7 @@ local function expandMacro(self, str)
25
26
if self.generator then
27
str = str:gsub("${generator}", self.generator)
28
end
- str = str:gsub("${hostSystemName}", vim.loop.os_uname().sysname)
29
+ str = str:gsub("${hostSystemName}", osys.iswin32 and "Windows" or vim.loop.os_uname().sysname)
30
str = str:gsub("${fileDir}", source_path.filename)
31
str = str:gsub("${dollar}", "$")
32
str = str:gsub("${pathListSep}", "/")
0 commit comments