|
|
@@ -293,9 +293,14 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
|
|
|
cmLocalGenerator::START_OUTPUT,
|
|
|
cmLocalGenerator::UNCHANGED));
|
|
|
}
|
|
|
- exeCleanFiles.push_back(this->Convert(cleanFullPDBName.c_str(),
|
|
|
- cmLocalGenerator::START_OUTPUT,
|
|
|
- cmLocalGenerator::UNCHANGED));
|
|
|
+
|
|
|
+ // List the PDB for cleaning only when the whole target is
|
|
|
+ // cleaned. We do not want to delete the .pdb file just before
|
|
|
+ // linking the target.
|
|
|
+ this->CleanFiles.push_back
|
|
|
+ (this->Convert(cleanFullPDBName.c_str(),
|
|
|
+ cmLocalGenerator::START_OUTPUT,
|
|
|
+ cmLocalGenerator::UNCHANGED));
|
|
|
}
|
|
|
|
|
|
// Add a command to remove any existing files for this executable.
|