summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-03-14 15:34:26 -0400
committerBrad King <brad.king@kitware.com>2011-03-14 15:34:26 -0400
commitc9d55ae5b9dceb90c735df72b7c487d0a75b2b62 (patch)
tree643f02b03d8a6430f2b7a74ab5f444aaff091615
parentc6a8e4c71ad56df8f7de30bfed3a3d9d62419325 (diff)
downloadcmake-c9d55ae5b9dceb90c735df72b7c487d0a75b2b62.tar.gz
cmake-c9d55ae5b9dceb90c735df72b7c487d0a75b2b62.tar.xz
cmake-c9d55ae5b9dceb90c735df72b7c487d0a75b2b62.zip
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).
-rw-r--r--Source/cmTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index b5900c474..e8593a10a 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -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;
}