From 96ce61fab70ea81aa8f1dcdb55e85a52a6da26f5 Mon Sep 17 00:00:00 2001 From: Franz Hollerer Date: Tue, 17 Mar 2020 10:02:44 +0100 Subject: [PATCH] [#394] fixes dependency on libzmq libraries simplified logic according @tau-mask suggestion --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c21fc3..c860dc4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ if (NOT TARGET libzmq AND NOT TARGET libzmq-static) message(FATAL_ERROR "ZeroMQ was not found, neither as a CMake package nor via pkg-config") endif() - if (ZeroMQ_FOUND AND (NOT TARGET libzmq OR NOT TARGET libzmq-static)) + if (ZeroMQ_FOUND AND NOT (TARGET libzmq OR TARGET libzmq-static)) message(FATAL_ERROR "ZeroMQ version not supported!") endif() endif()