BUG: Do not clean the .pdb file for a target just before it is linked! This finishes addressing bug#4341.

This commit is contained in:
Brad King
2007-02-01 16:52:52 -05:00
parent 4d44392652
commit ed7de15676
2 changed files with 13 additions and 4 deletions

View File

@@ -401,7 +401,11 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
cmLocalGenerator::START_OUTPUT,
cmLocalGenerator::UNCHANGED));
}
libCleanFiles.push_back
// 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));