Skip to content

Commit 83268ea

Browse files
authored
Merge pull request #287 from sebu06/fix_multiconfig_generators
fix: pass config argument to build process for multiconfig generators
2 parents a673bb6 + 4d1a36d commit 83268ea

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lua/cmake-tools/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ function cmake.build(opt, callback)
364364
vim.list_extend(args, fargs)
365365
end
366366

367+
if config.build_type ~= nil then
368+
vim.list_extend(args, { "--config", config.build_type })
369+
end
370+
367371
vim.list_extend(args, config:build_options())
368372

369373
local env = environment.get_build_environment(config)

0 commit comments

Comments
 (0)