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:
Brad King 2011-03-14 15:34:26 -04:00
parent c6a8e4c71a
commit c9d55ae5b9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}