ctest --preset=ninja-multi --config Release does not work?

bash-3.2$ ctest  --preset=ninja-multi --config Release 
Test project /Users/clausklein/Workspace/cpp/ModernCmakeStarter/build/ninja-multi
    Start 1: GreeterTests
Test not available without configuration.  (Missing "-C <config>"?)
1/1 Test #1: GreeterTests .....................***Not Run   0.00 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.10 sec

The following tests FAILED:
	  1 - GreeterTests (Not Run)
Errors while running CTest

but this works:

bash-3.2$ cmake --build  --preset=ninja-multi --config Release --target test
[0/1] Running tests...
Test project /Users/clausklein/Workspace/cpp/ModernCmakeStarter/build/ninja-multi
    Start 1: GreeterTests
1/1 Test #1: GreeterTests .....................   Passed    0.60 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.62 sec
bash-3.2$ 

ctest takes a -C option, not --config IIRC.

Thanks, but ctest should have better the same long form --config argument, or not?

bash-3.2$ ctest --preset=ninja-multi --build-config Release 
Test project /Users/clausklein/Workspace/cpp/ModernCmakeStarter/build/ninja-multi
    Start 1: GreeterTests
1/1 Test #1: GreeterTests .....................   Passed    0.09 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.10 sec
bash-3.2$ 

That sounds like a good request to me. @robert.maynard has the CTest command line had a refresh/tightening up that CMake did?

No only cmake, cmake --build, and cmake --install use the new command line parsing rules.