Skip to content

Commit

Permalink
fix libzmqPkgConfigFallback.cmake for find library in macOS and MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
clouds56 committed Oct 7, 2017
1 parent 845dbac commit 1e2682f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libzmqPkgConfigFallback.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ find_package(PkgConfig)
pkg_check_modules(PC_LIBZMQ QUIET libzmq)

set(ZeroMQ_VERSION ${PC_LIBZMQ_VERSION})
find_library(ZeroMQ_LIBRARY NAMES libzmq.so
find_library(ZeroMQ_LIBRARY NAMES libzmq.so libzmq.dylib libzmq.dll
PATHS ${PC_LIBZMQ_LIBDIR} ${PC_LIBZMQ_LIBRARY_DIRS})
find_library(ZeroMQ_STATIC_LIBRARY NAMES libzmq.a
find_library(ZeroMQ_STATIC_LIBRARY NAMES libzmq.a libzmq.dll.a
PATHS ${PC_LIBZMQ_LIBDIR} ${PC_LIBZMQ_LIBRARY_DIRS})

add_library(libzmq SHARED IMPORTED)
Expand Down

0 comments on commit 1e2682f

Please sign in to comment.