Fix Vim-integration build debug command; rename excpetions-test to singular.

This commit is contained in:
S David 2023-10-20 17:52:46 -04:00
parent 67be36bb40
commit 9f5ca3c6d1
3 changed files with 8 additions and 2 deletions

View File

@ -49,15 +49,21 @@ if ! get(s:, 'defined', 0) " -- prevents the function from being redefined after
function! BuildDebug()
let s:defined = 1
wall
if (s:ninja_path == '')
if (s:ninja_path != '')
if (
\ (!filereadable(s:build_dir . '/CMakeCache.txt')) ||
\ (!filereadable(s:build_dir . '/build.ninja'))
\ )
exec ':Dispatch ' . s:cmake_call
endif
echo "found ninja"
sleep 5
set makeprg='ninja'
exec ':Make ' . s:make_args

View File

@ -1,6 +1,6 @@
# Add the test executable
add_executable(mdml-tests exceptions-test.cpp)
add_executable(mdml-tests exception-test.cpp)
set_target_properties(mdml-tests PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/artifacts/tests"