Merge topic 'simplify-GetRealDependency'
4f6fd96 Drop if(...) check because condition is always true
This commit is contained in:
commit
6ed36e7b88
@ -1902,15 +1902,8 @@ bool cmLocalGenerator::GetRealDependency(const char* inName,
|
|||||||
case cmTarget::SHARED_LIBRARY:
|
case cmTarget::SHARED_LIBRARY:
|
||||||
case cmTarget::MODULE_LIBRARY:
|
case cmTarget::MODULE_LIBRARY:
|
||||||
case cmTarget::UNKNOWN_LIBRARY:
|
case cmTarget::UNKNOWN_LIBRARY:
|
||||||
{
|
dep = target->GetLocation(config);
|
||||||
// Get the location of the target's output file and depend on it.
|
return true;
|
||||||
if(const char* location = target->GetLocation(config))
|
|
||||||
{
|
|
||||||
dep = location;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case cmTarget::UTILITY:
|
case cmTarget::UTILITY:
|
||||||
case cmTarget::GLOBAL_TARGET:
|
case cmTarget::GLOBAL_TARGET:
|
||||||
// A utility target has no file on which to depend. This was listed
|
// A utility target has no file on which to depend. This was listed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user