From 3e279971fb81cb3c810b35869ad335d50a98c4ab Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 15 Dec 2010 11:30:57 -0500 Subject: Make link rule depend on ".def" file (#11014) When the link command line references a ".def" file the rule should depend on it. Inspired-By: Eric Huhtala --- Source/cmMakefileTargetGenerator.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 969cfdb..cf19ce6 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -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::const_iterator obj = this->ExternalObjects.begin(); -- cgit v0.12