cmNinjaNormalTargetGenerator: use cmStrCat

This commit is contained in:
Ben Boeckel
2022-11-21 17:08:27 -05:00
parent b7509d6bf8
commit a971fcfde7

View File

@@ -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;
}