diff options
author | Brad King <brad.king@kitware.com> | 2010-12-15 11:30:57 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-12-15 11:30:57 -0500 |
commit | 3e279971fb81cb3c810b35869ad335d50a98c4ab (patch) | |
tree | edc5fb00568f92ff418c1287eafd7187e578691a /Source/cmMakefileTargetGenerator.cxx | |
parent | a14a8562ea5f321b0a8f6f61f4c457da298825c5 (diff) | |
download | cmake-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.cxx | 6 |
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(); |