ENH: fix for BUG: #739 again, makefiles did not depend on external full path libraries
This commit is contained in:
parent
f8211e5e4d
commit
0406aace34
@ -1113,7 +1113,7 @@ void cmMakefileTargetGenerator
|
|||||||
// Don't emit the same library twice for this target.
|
// Don't emit the same library twice for this target.
|
||||||
if(emitted.insert(lib->first).second)
|
if(emitted.insert(lib->first).second)
|
||||||
{
|
{
|
||||||
// Depend only on other CMake targets.
|
// Depend on other CMake targets.
|
||||||
if(cmTarget* tgt =
|
if(cmTarget* tgt =
|
||||||
this->GlobalGenerator->FindTarget(0, lib->first.c_str()))
|
this->GlobalGenerator->FindTarget(0, lib->first.c_str()))
|
||||||
{
|
{
|
||||||
@ -1124,6 +1124,11 @@ void cmMakefileTargetGenerator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// depend on full path libs as well
|
||||||
|
else if(cmSystemTools::FileIsFullPath(lib->first.c_str()))
|
||||||
|
{
|
||||||
|
depends.push_back(lib->first.c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user