summaryrefslogtreecommitdiff
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-15 11:30:57 -0500
committerBrad King <brad.king@kitware.com>2010-12-15 11:30:57 -0500
commit3e279971fb81cb3c810b35869ad335d50a98c4ab (patch)
treeedc5fb00568f92ff418c1287eafd7187e578691a /Source/cmMakefileTargetGenerator.cxx
parenta14a8562ea5f321b0a8f6f61f4c457da298825c5 (diff)
downloadcmake-3e279971fb81cb3c810b35869ad335d50a98c4ab.tar.gz
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
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 969cfdb1df..cf19ce693a 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<std::string>::const_iterator obj
= this->ExternalObjects.begin();