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.
2 parents ebdacc5 + e5d4b0c commit d3f2313Copy full SHA for d3f2313
plugin/cmake.vim
@@ -28,8 +28,13 @@ function! s:cmake(...)
28
let g:cmake_build_dir = get(g:, 'cmake_build_dir', 'build')
29
let s:build_dir = finddir(g:cmake_build_dir, '.;')
30
31
- if s:build_dir !=""
+ if s:build_dir == ""
32
+ echo g:cmake_build_dir
33
+ silent call mkdir(g:cmake_build_dir, 'p')
34
+ let s:build_dir = finddir(g:cmake_build_dir, '.;')
35
+ endif
36
37
+ if s:build_dir != ""
38
let &makeprg='cmake --build ' . shellescape(s:build_dir) . ' --target '
39
40
exec 'cd' s:fnameescape(s:build_dir)
0 commit comments