diff options
author | Bartosz Kosiorek <bartosz.kosiorek@tomtom.com> | 2019-03-08 09:38:27 (GMT) |
---|---|---|
committer | Bartosz Kosiorek <bartosz.kosiorek@tomtom.com> | 2019-03-12 11:00:09 (GMT) |
commit | 077ab5774c637eb2262587425199579c90967577 (patch) | |
tree | afa7839103d8653e7e909c22e1699442d879eb73 /Source/cmakemain.cxx | |
parent | 071f5e15440d676c36c6ed8a92618b8ca4bb36fe (diff) | |
download | CMake-077ab5774c637eb2262587425199579c90967577.zip CMake-077ab5774c637eb2262587425199579c90967577.tar.gz CMake-077ab5774c637eb2262587425199579c90967577.tar.bz2 |
cmake: add short version of '--target <tgt>...' option
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index a8431c4..b83c744 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -58,12 +58,13 @@ static const char* cmDocumentationUsageNote[][2] = { " = Build in parallel using the given number of jobs. \n" \ " If <jobs> is omitted the native build tool's \n" \ " default number is used.\n" \ + " The CMAKE_BUILD_PARALLEL_LEVEL environment " \ "variable\n" \ " specifies a default parallel level when this " \ "option\n" \ " is not given.\n" \ - " --target <tgt> = Build <tgt> instead of default targets.\n" \ - " May be specified multiple times.\n" \ + " --target <tgt>..., -t <tgt>... \n" \ + " = Build <tgt> instead of default targets.\n" \ " --config <cfg> = For multi-configuration tools, choose <cfg>.\n" \ " --clean-first = Build target 'clean' first, then build.\n" \ " (To clean only, use --target 'clean'.)\n" \ @@ -429,7 +430,8 @@ static int do_build(int ac, char const* const* av) dir.clear(); } doing = DoingNone; - } else if (strcmp(av[i], "--target") == 0) { + } else if ((strcmp(av[i], "--target") == 0) || + (strcmp(av[i], "-t") == 0)) { doing = DoingTarget; } else if (strcmp(av[i], "--config") == 0) { doing = DoingConfig; |