[#394] fixes dependency on libzmq libraries

simplified logic according @tau-mask suggestion
This commit is contained in:
Franz Hollerer 2020-03-17 10:02:44 +01:00 committed by Franz Hollerer
parent 89f4d1b187
commit 96ce61fab7

View File

@ -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()