From d3849f9de16fc9673c3fb5f0fd2f2113de8b23ce Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 16 Jun 2025 20:58:58 +0200 Subject: [PATCH] cmLocalGenerator: add a useful comment for the PDB copying command --- Source/cmLocalGenerator.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 07e6f340d3..dd0d7c14ff 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2981,7 +2981,10 @@ void cmLocalGenerator::CopyPchCompilePdb( configGenex(cmStrCat("-DPDB_PREFIX=", pdb_prefix)), configGenex("-P"), configGenex(copy_script) }); - char const* no_message = ""; + auto const comment = + cmStrCat("Copying PDB for PCH reuse from ", reuseTarget->GetName(), + " for ", target->GetName()); + ; std::vector outputs; outputs.push_back(configGenex( @@ -2989,7 +2992,7 @@ void cmLocalGenerator::CopyPchCompilePdb( auto cc = cm::make_unique(); cc->SetCommandLines(commandLines); - cc->SetComment(no_message); + cc->SetComment(comment.c_str()); cc->SetStdPipesUTF8(true); cc->AppendDepends({ reuseTarget->GetPchFile(config, language) });