BUG: Need to clean manifest files that may have been generated for .exe and .dll files.
This commit is contained in:
parent
c6f1a11480
commit
c7daee6860
@ -272,6 +272,13 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
|
|||||||
exeCleanFiles.push_back(this->Convert(cleanFullName.c_str(),
|
exeCleanFiles.push_back(this->Convert(cleanFullName.c_str(),
|
||||||
cmLocalGenerator::START_OUTPUT,
|
cmLocalGenerator::START_OUTPUT,
|
||||||
cmLocalGenerator::UNCHANGED));
|
cmLocalGenerator::UNCHANGED));
|
||||||
|
#ifdef _WIN32
|
||||||
|
// There may be a manifest file for this target. Add it to the
|
||||||
|
// clean set just in case.
|
||||||
|
exeCleanFiles.push_back(this->Convert((cleanFullName+".manifest").c_str(),
|
||||||
|
cmLocalGenerator::START_OUTPUT,
|
||||||
|
cmLocalGenerator::UNCHANGED));
|
||||||
|
#endif
|
||||||
if(cleanRealName != cleanName)
|
if(cleanRealName != cleanName)
|
||||||
{
|
{
|
||||||
exeCleanFiles.push_back(this->Convert(cleanFullRealName.c_str(),
|
exeCleanFiles.push_back(this->Convert(cleanFullRealName.c_str(),
|
||||||
|
@ -393,6 +393,19 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
|
|||||||
cmLocalGenerator::UNCHANGED));
|
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.
|
// Add a command to remove any existing files for this library.
|
||||||
std::vector<std::string> commands1;
|
std::vector<std::string> commands1;
|
||||||
this->LocalGenerator->AppendCleanCommand(commands1, libCleanFiles,
|
this->LocalGenerator->AppendCleanCommand(commands1, libCleanFiles,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user