mirror of
https://github.com/reactos/CMake.git
synced 2025-01-09 21:21:07 +00:00
cmMakefile: DeMorgan-invert condition
This commit is contained in:
parent
4457a9f181
commit
148b83a121
@ -1232,10 +1232,10 @@ void cmMakefile::AddLinkLibraryForTarget(const std::string& target,
|
|||||||
cmTarget* tgt = this->GetGlobalGenerator()->FindTarget(lib);
|
cmTarget* tgt = this->GetGlobalGenerator()->FindTarget(lib);
|
||||||
if (tgt) {
|
if (tgt) {
|
||||||
// if it is not a static or shared library then you can not link to it
|
// if it is not a static or shared library then you can not link to it
|
||||||
if (!((tgt->GetType() == cmState::STATIC_LIBRARY) ||
|
if ((tgt->GetType() != cmState::STATIC_LIBRARY) &&
|
||||||
(tgt->GetType() == cmState::SHARED_LIBRARY) ||
|
(tgt->GetType() != cmState::SHARED_LIBRARY) &&
|
||||||
(tgt->GetType() == cmState::INTERFACE_LIBRARY) ||
|
(tgt->GetType() != cmState::INTERFACE_LIBRARY) &&
|
||||||
tgt->IsExecutableWithExports())) {
|
!tgt->IsExecutableWithExports()) {
|
||||||
std::ostringstream e;
|
std::ostringstream e;
|
||||||
e << "Target \"" << lib << "\" of type "
|
e << "Target \"" << lib << "\" of type "
|
||||||
<< cmState::GetTargetTypeName(tgt->GetType())
|
<< cmState::GetTargetTypeName(tgt->GetType())
|
||||||
|
Loading…
Reference in New Issue
Block a user