We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b0c7f5 commit d1a8e22Copy full SHA for d1a8e22
lua/compiler/bau/cmake.lua
@@ -9,11 +9,11 @@ function M.action(option)
9
10
-- Global: CMAKE_BUILD_DIR
11
local success, build_dir = pcall(vim.api.nvim_get_var, 'CMAKE_BUILD_DIR')
12
- if not success then build_dir = './build' end
+ if not success or build_dir == "" then build_dir = './build' end
13
14
-- Global: CMAKE_BUILD_TYPE
15
local success, build_type = pcall(vim.api.nvim_get_var, 'CMAKE_BUILD_TYPE')
16
- if not success then build_type = 'Debug' end
+ if not success or build_type == "" then build_type = 'Debug' end
17
18
-- Global: CMAKE_CLEAN_FIRST
19
local clean_first_arg = ""
0 commit comments