cmLocalGenerator: add PDB copying dependency on its script

This commit is contained in:
Ben Boeckel
2025-07-22 12:42:57 -04:00
parent d3849f9de1
commit 99bdf2ae16
+2 -1
View File
@@ -2994,7 +2994,8 @@ void cmLocalGenerator::CopyPchCompilePdb(
cc->SetCommandLines(commandLines);
cc->SetComment(comment.c_str());
cc->SetStdPipesUTF8(true);
cc->AppendDepends({ reuseTarget->GetPchFile(config, language) });
cc->AppendDepends(
{ reuseTarget->GetPchFile(config, language), copy_script });
if (this->GetGlobalGenerator()->IsVisualStudio()) {
cc->SetByproducts(outputs);