summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-26 14:29:13 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-10-26 14:29:22 (GMT)
commit9fa7afe7d332ced27264f1ef7c921aa1d95bc476 (patch)
tree5ba7bb4f43f157ce4978cc3ff647d5f8ab067917 /Source/cmake.cxx
parenta1fe3be2bf93d5ff145ede509db6c454870d979f (diff)
parentafac7482d2d131a74f699f05f93cf6b17effe5d2 (diff)
downloadCMake-9fa7afe7d332ced27264f1ef7c921aa1d95bc476.zip
CMake-9fa7afe7d332ced27264f1ef7c921aa1d95bc476.tar.gz
CMake-9fa7afe7d332ced27264f1ef7c921aa1d95bc476.tar.bz2
Merge topic 'correct_profiling-output_exception' into release-3.19
afac7482d2 cmake: command arguments which use '=' behave consistently Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5414
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 291ce22..45d6d6c 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -941,19 +941,19 @@ void cmake::SetArgs(const std::vector<std::string>& args)
return;
}
#if !defined(CMAKE_BOOTSTRAP)
- } else if (cmHasLiteralPrefix(arg, "--profiling-format")) {
+ } else if (cmHasLiteralPrefix(arg, "--profiling-format=")) {
profilingFormat = arg.substr(strlen("--profiling-format="));
if (profilingFormat.empty()) {
cmSystemTools::Error("No format specified for --profiling-format");
}
- } else if (cmHasLiteralPrefix(arg, "--profiling-output")) {
+ } else if (cmHasLiteralPrefix(arg, "--profiling-output=")) {
profilingOutput = arg.substr(strlen("--profiling-output="));
profilingOutput = cmSystemTools::CollapseFullPath(profilingOutput);
cmSystemTools::ConvertToUnixSlashes(profilingOutput);
if (profilingOutput.empty()) {
cmSystemTools::Error("No path specified for --profiling-output");
}
- } else if (cmHasLiteralPrefix(arg, "--preset")) {
+ } else if (cmHasLiteralPrefix(arg, "--preset=")) {
presetName = arg.substr(strlen("--preset="));
if (presetName.empty()) {
cmSystemTools::Error("No preset specified for --preset");