cmGlobalNinjaGenerator: simplify a string building call

This commit is contained in:
Ben Boeckel
2022-06-14 19:11:33 -04:00
parent a8115deebe
commit 52d47fd4e6

View File

@@ -2517,7 +2517,7 @@ bool cmGlobalNinjaGenerator::WriteDyndepFile(
// Populate the module map with those provided by linked targets first.
for (std::string const& linked_target_dir : linked_target_dirs) {
std::string const ltmn =
cmStrCat(linked_target_dir, "/", arg_lang, "Modules.json");
cmStrCat(linked_target_dir, '/', arg_lang, "Modules.json");
Json::Value ltm;
cmsys::ifstream ltmf(ltmn.c_str(), std::ios::in | std::ios::binary);
Json::Reader reader;