ilyachur/cmake4vim

CTest unknown target

Closed this issue · 3 comments

Describe the bug
When running CTest with the ninja generator the testing fails with

|| ninja: Entering directory `/Users/mark/workspace/build/project/clang/Release'
|| ninja: error: unknown target 'ARGS='

Actual command that was run:
:Dispatch cmake --build /Users/mark/workspace/build/project/clang/Release --target test -- -C /Users/mark/workspace/build/project/clang/Release ARGS=""

To Reproduce
Steps to reproduce the behavior:

  1. Run :CMake and :CMakeBuild
  2. Run :CTest
  3. See error

Expected behavior
I would expect that it behaves the same as running ctest in the build directory.

Desktop:

  • OS: macOS
  • Editor: terminal vim ( installed macvim through brew )
  • Version: 8.2

Created a PR #70 which should solve the issue.

@mark2185 PR was merged. Please verify the latest master.

Works great, thanks!