Merge pull request #395 from franzhollerer/Issue_#394_fix_cmake_library_dependency

[#394] fixes dependency on libzmq libraries
This commit is contained in:
Simon Giesecke 2020-09-04 11:15:03 +02:00 committed by GitHub
commit 4ceb2c8722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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