summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-10-20 02:05:26 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-10-20 03:00:16 (GMT)
commitf02c3c61815bcfac4b80f8e5d13a8a6542b9bfdc (patch)
tree6106e1b8e43a529f562bee4db484ac56fbfa36f1
parent29a13e0692b045debd7370ef6e54e576fba9eb04 (diff)
downloadCMake-f02c3c61815bcfac4b80f8e5d13a8a6542b9bfdc.zip
CMake-f02c3c61815bcfac4b80f8e5d13a8a6542b9bfdc.tar.gz
CMake-f02c3c61815bcfac4b80f8e5d13a8a6542b9bfdc.tar.bz2
cmFileCommand: combine string literals
-rw-r--r--Source/cmFileCommand.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 93bed9a..9cd3db1 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -1322,13 +1322,15 @@ bool HandleRealPathCommand(std::vector<std::string> const& args,
if (oldPolicyPath != realPath) {
status.GetMakefile().IssueMessage(
MessageType::AUTHOR_WARNING,
- cmStrCat(
- cmPolicies::GetPolicyWarning(cmPolicies::CMP0152), '\n',
- "From input path:\n ", input,
- "\nthe policy OLD behavior produces path:\n ", oldPolicyPath,
- "\nbut the policy NEW behavior produces path:\n ", realPath,
- "\nSince the policy is not set, CMake is using the OLD "
- "behavior for compatibility."));
+ cmStrCat(cmPolicies::GetPolicyWarning(cmPolicies::CMP0152),
+ "\n"
+ "From input path:\n ",
+ input, "\nthe policy OLD behavior produces path:\n ",
+ oldPolicyPath,
+ "\nbut the policy NEW behavior produces path:\n ",
+ realPath,
+ "\nSince the policy is not set, CMake is using the OLD "
+ "behavior for compatibility."));
}
}
realPath = oldPolicyPath;