Skip to content

Commit d1a8e22

Browse files
committed
chore: Even stronger.
1 parent 7b0c7f5 commit d1a8e22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/compiler/bau/cmake.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ function M.action(option)
99

1010
-- Global: CMAKE_BUILD_DIR
1111
local success, build_dir = pcall(vim.api.nvim_get_var, 'CMAKE_BUILD_DIR')
12-
if not success then build_dir = './build' end
12+
if not success or build_dir == "" then build_dir = './build' end
1313

1414
-- Global: CMAKE_BUILD_TYPE
1515
local success, build_type = pcall(vim.api.nvim_get_var, 'CMAKE_BUILD_TYPE')
16-
if not success then build_type = 'Debug' end
16+
if not success or build_type == "" then build_type = 'Debug' end
1717

1818
-- Global: CMAKE_CLEAN_FIRST
1919
local clean_first_arg = ""

0 commit comments

Comments
 (0)