Add parens in cmTarget::ComputeLinkInterface logic
Avoid GCC warning warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] added by commit c6a8e4c7 (The link interface of MODULE libraries is empty, 2011-03-09).
This commit is contained in:
parent
c6a8e4c71a
commit
c9d55ae5b9
@ -4284,7 +4284,7 @@ bool cmTarget::ComputeLinkInterface(const char* config, LinkInterface& iface)
|
||||
bool canLinkModules = this->Makefile->NeedBackwardsCompatibility(2,2);
|
||||
if(!explicitLibraries &&
|
||||
(this->GetType() == cmTarget::EXECUTABLE ||
|
||||
this->GetType() == cmTarget::MODULE_LIBRARY && !canLinkModules))
|
||||
(this->GetType() == cmTarget::MODULE_LIBRARY && !canLinkModules)))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user