Merge topic 'link-depend-def-file'

3e27997 Make link rule depend on ".def" file (#11014)
This commit is contained in:
Brad King 2010-12-16 14:00:17 -05:00 committed by CMake Topic Stage
commit ed9979f931
1 changed files with 6 additions and 0 deletions

View File

@ -1527,6 +1527,12 @@ void cmMakefileTargetGenerator
this->LocalGenerator->AppendRuleDepend(depends,
this->BuildFileNameFull.c_str());
// Add a dependency on the link definitions file, if any.
if(!this->ModuleDefinitionFile.empty())
{
depends.push_back(this->ModuleDefinitionFile);
}
// Add dependencies on the external object files.
for(std::vector<std::string>::const_iterator obj
= this->ExternalObjects.begin();