diff options
author | Brad King <brad.king@kitware.com> | 2007-02-01 16:52:52 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-02-01 16:52:52 -0500 |
commit | ed7de15676aa3e1731a16d263ce5113cbb2fe4fc (patch) | |
tree | 0c69c2d78abfb18a40cc17da60c55c38b3022f60 /Source/cmMakefileExecutableTargetGenerator.cxx | |
parent | 4d443926528587e3ce52a301da236a2cce92ec75 (diff) | |
download | cmake-ed7de15676aa3e1731a16d263ce5113cbb2fe4fc.tar.gz |
BUG: Do not clean the .pdb file for a target just before it is linked! This finishes addressing bug#4341.
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileExecutableTargetGenerator.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx index 91038d5677..5026834485 100644 --- a/Source/cmMakefileExecutableTargetGenerator.cxx +++ b/Source/cmMakefileExecutableTargetGenerator.cxx @@ -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. |