Skip to content

Commit a900ef1

Browse files
committed
Fix FindZMQ on Windows
Use vcpkg target
1 parent 05fe640 commit a900ef1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/FindZMQ.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
1414
#
1515

16+
find_package(ZeroMQ CONFIG REQUIRED)
17+
if(TARGET libzmq)
18+
add_library(zmq ALIAS libzmq)
19+
set(ZMQ_FOUND TRUE)
20+
return()
21+
endif()
22+
1623
if (ZMQ_LIBRARIES AND ZMQ_INCLUDE_DIRS)
1724
# in cache already
1825
set(ZMQ_FOUND TRUE)

0 commit comments

Comments
 (0)