mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-27 03:08:35 -06:00
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
This commit is contained in:
@@ -1527,6 +1527,12 @@ void cmMakefileTargetGenerator
|
|||||||
this->LocalGenerator->AppendRuleDepend(depends,
|
this->LocalGenerator->AppendRuleDepend(depends,
|
||||||
this->BuildFileNameFull.c_str());
|
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.
|
// Add dependencies on the external object files.
|
||||||
for(std::vector<std::string>::const_iterator obj
|
for(std::vector<std::string>::const_iterator obj
|
||||||
= this->ExternalObjects.begin();
|
= this->ExternalObjects.begin();
|
||||||
|
|||||||
Reference in New Issue
Block a user