Skip to content

Commit

Permalink
Fix FindZMQ on Windows
Browse files Browse the repository at this point in the history
Use vcpkg target
  • Loading branch information
Ace314159 committed Nov 16, 2021
1 parent 05fe640 commit a900ef1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/FindZMQ.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#

find_package(ZeroMQ CONFIG REQUIRED)
if(TARGET libzmq)
add_library(zmq ALIAS libzmq)
set(ZMQ_FOUND TRUE)
return()
endif()

if (ZMQ_LIBRARIES AND ZMQ_INCLUDE_DIRS)
# in cache already
set(ZMQ_FOUND TRUE)
Expand Down

0 comments on commit a900ef1

Please sign in to comment.