summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-15 19:28:29 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-15 19:28:29 (GMT)
commitc7daee686003768aa58651e7d7ee31beac4d35f9 (patch)
treee3db0675ddb3d6c3032986a6de3c9bc7d4f373dd /Source/cmMakefileLibraryTargetGenerator.cxx
parentc6f1a11480f478b430fcb798ddeac972ec17ae6a (diff)
downloadCMake-c7daee686003768aa58651e7d7ee31beac4d35f9.zip
CMake-c7daee686003768aa58651e7d7ee31beac4d35f9.tar.gz
CMake-c7daee686003768aa58651e7d7ee31beac4d35f9.tar.bz2
BUG: Need to clean manifest files that may have been generated for .exe and .dll files.
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index b3ac2d3..c7c06ff 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -393,6 +393,19 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
cmLocalGenerator::UNCHANGED));
}
}
+
+#ifdef _WIN32
+ // There may be a manifest file for this target. Add it to the
+ // clean set just in case.
+ if(this->Target->GetType() != cmTarget::STATIC_LIBRARY)
+ {
+ libCleanFiles.push_back(
+ this->Convert((targetFullPath+".manifest").c_str(),
+ cmLocalGenerator::START_OUTPUT,
+ cmLocalGenerator::UNCHANGED));
+ }
+#endif
+
// Add a command to remove any existing files for this library.
std::vector<std::string> commands1;
this->LocalGenerator->AppendCleanCommand(commands1, libCleanFiles,