summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-21 22:08:27 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-21 22:12:18 (GMT)
commita971fcfde79abe9ccf19e77a2a71b9fbfccce439 (patch)
tree0871b98875cac299462edaed09b6be15413f50d7 /Source/cmNinjaNormalTargetGenerator.cxx
parentb7509d6bf8de0af7077da894b124a40fbf73c935 (diff)
downloadCMake-a971fcfde79abe9ccf19e77a2a71b9fbfccce439.zip
CMake-a971fcfde79abe9ccf19e77a2a71b9fbfccce439.tar.gz
CMake-a971fcfde79abe9ccf19e77a2a71b9fbfccce439.tar.bz2
cmNinjaNormalTargetGenerator: use `cmStrCat`
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 5cc7987..6ec1781 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -64,9 +64,9 @@ void cmNinjaNormalTargetGenerator::Generate(const std::string& config)
{
std::string lang = this->GeneratorTarget->GetLinkerLanguage(config);
if (this->TargetLinkLanguage(config).empty()) {
- cmSystemTools::Error("CMake can not determine linker language for "
- "target: " +
- this->GetGeneratorTarget()->GetName());
+ cmSystemTools::Error(
+ cmStrCat("CMake can not determine linker language for target: ",
+ this->GetGeneratorTarget()->GetName()));
return;
}