diff options
author | Brad King <brad.king@kitware.com> | 2020-10-26 14:29:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-10-26 14:29:23 (GMT) |
commit | 388dc4d2ac65a63b1b5fef695e62e066686474d5 (patch) | |
tree | b81ec3c02481998c186b05ed6cd195ac2f270d52 /Source | |
parent | 9eec82f8c5bab499b3572e1bd3934b15b9bf1ef7 (diff) | |
parent | afac7482d2d131a74f699f05f93cf6b17effe5d2 (diff) | |
download | CMake-388dc4d2ac65a63b1b5fef695e62e066686474d5.zip CMake-388dc4d2ac65a63b1b5fef695e62e066686474d5.tar.gz CMake-388dc4d2ac65a63b1b5fef695e62e066686474d5.tar.bz2 |
Merge topic 'correct_profiling-output_exception'
afac7482d2 cmake: command arguments which use '=' behave consistently
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5414
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmake.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 1771f0a..de3025b 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"); |