preset: ctest shouldn't need "phony" configurePreset
Similar to #22276 (closed), for test presets I would like to avoid many duplicate presets just setting binaryDir, by letting the user specify ctest --test-dir build2 --preset ...
.
With configure presets, it's possible to override the build dir like:
cmake --preset my -B buildfoo
CMake "testPresets" probably shouldn't require any configurePreset. Right now, I can't use a test preset unless it has at least an empty, non-hidden configurePreset like the example CMakePresets.json:
"configurePresets": [
{
"name": "phony",
}
]
"testPresets": [
{
"name": "my",
"configurePreset": "phony"
}
]
ctest --preset my --test-dir build2
It's desired to have "standalone" testPresets to enable using lots of test settings without restricting users to a single configurePreset binaryDir, which causes unexpected/undefined problems with PROJECT_BINARY_DIR when user specified cmake -B build --preset ...