summaryrefslogtreecommitdiff
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-23 09:12:55 -0500
committerBrad King <brad.king@kitware.com>2021-02-23 09:22:00 -0500
commit6fa36470239a40ef81752ddea923d8618ad6eb7c (patch)
treeb1a9b98b5485f9a824d5986446163883bc22b62d /Source/ctest.cxx
parent3357d377612fc238ff9da61666041764792034bb (diff)
downloadcmake-6fa36470239a40ef81752ddea923d8618ad6eb7c.tar.gz
ctest: Add support for '--prefix=<prefix>' form of the argument
The main `cmake --preset` argument for configure presets supports both forms, so support it for `ctest --preset` too. Fixes: #21855
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index 1404b0cb39..3c331d32bf 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -26,7 +26,8 @@ static const char* cmDocumentationUsage[][2] = { { nullptr,
{ nullptr, nullptr } };
static const char* cmDocumentationOptions[][2] = {
- { "--preset <preset>", "Read arguments from a test preset." },
+ { "--preset <preset>, --preset=<preset>",
+ "Read arguments from a test preset." },
{ "--list-presets", "List available test presets." },
{ "-C <cfg>, --build-config <cfg>", "Choose configuration to test." },
{ "--progress", "Enable short progress output from tests." },