diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-10-07 18:13:34 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-10-07 18:13:34 (GMT) |
commit | 148b83a12185d7611ff7576464087430c3f2719c (patch) | |
tree | 2af5bd2c189a38924f467227b21c249921663dbc /Source/cmMakefile.cxx | |
parent | 4457a9f181663701961dc209740974f48213e6e7 (diff) | |
download | CMake-148b83a12185d7611ff7576464087430c3f2719c.zip CMake-148b83a12185d7611ff7576464087430c3f2719c.tar.gz CMake-148b83a12185d7611ff7576464087430c3f2719c.tar.bz2 |
cmMakefile: DeMorgan-invert condition
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 8 |
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()) |