summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-07 18:13:34 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-10-07 18:13:34 (GMT)
commit148b83a12185d7611ff7576464087430c3f2719c (patch)
tree2af5bd2c189a38924f467227b21c249921663dbc
parent4457a9f181663701961dc209740974f48213e6e7 (diff)
downloadCMake-148b83a12185d7611ff7576464087430c3f2719c.zip
CMake-148b83a12185d7611ff7576464087430c3f2719c.tar.gz
CMake-148b83a12185d7611ff7576464087430c3f2719c.tar.bz2
cmMakefile: DeMorgan-invert condition
-rw-r--r--Source/cmMakefile.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index f4ea8a9..8716696 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1232,10 +1232,10 @@ void cmMakefile::AddLinkLibraryForTarget(const std::string& target,
cmTarget* tgt = this->GetGlobalGenerator()->FindTarget(lib);
if (tgt) {
// if it is not a static or shared library then you can not link to it
- if (!((tgt->GetType() == cmState::STATIC_LIBRARY) ||
- (tgt->GetType() == cmState::SHARED_LIBRARY) ||
- (tgt->GetType() == cmState::INTERFACE_LIBRARY) ||
- tgt->IsExecutableWithExports())) {
+ if ((tgt->GetType() != cmState::STATIC_LIBRARY) &&
+ (tgt->GetType() != cmState::SHARED_LIBRARY) &&
+ (tgt->GetType() != cmState::INTERFACE_LIBRARY) &&
+ !tgt->IsExecutableWithExports()) {
std::ostringstream e;
e << "Target \"" << lib << "\" of type "
<< cmState::GetTargetTypeName(tgt->GetType())