Skip to content

Commit 4d1a36d

Browse files
author
sebu06
committed
fix: pass config argument to build process for multiconfig generators
1 parent a673bb6 commit 4d1a36d

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)