Shatur / neovim-cmake

CMake integration for Neovim
GNU General Public License v3.0
87 stars 19 forks source link

'CMake build_all' does not respect 'build_args' #39

Closed vsemyonoff closed 2 years ago

vsemyonoff commented 2 years ago
@@ -54,7 +54,7 @@ function cmake.build_all(args)
   end

   local project_config = ProjectConfig.new()
-  args = vim.list_extend({ '--build', project_config:get_build_dir().filename }, args or {})
+  args = vim.list_extend({ '--build', project_config:get_build_dir().filename, unpack(config.build_args) }, args or {})
   return utils.run(config.cmake_executable, args, { on_success = project_config:copy_compile_commands() })
 end
Shatur commented 2 years ago

Oh, right, could you send a PR?