Skip to content

Commit

Permalink
Buildsystem/CMake: Fixed FindZMQ macro on x86 Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Oct 18, 2014
1 parent 130bcea commit 55e7879
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions cmake/macros/FindZMQ.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@ else()
)
endif()

find_path(ZMQ_INCLUDE_DIR
find_path(ZMQ_ROOT_DIR
NAMES
zmq.h
include/zmq.h
HINTS
"${ZMQ_REGISTRY_PATH}/include"
"${ZMQ_REGISTRY_PATH}"
PATHS
/usr/include
/usr/local/include
/usr
/usr/local
)

find_path(ZMQ_INCLUDE_DIR zmq.h ${ZMQ_ROOT_DIR}/include)

if (MSVC)
# Read registry key holding version
if (PLATFORM EQUAL 64)
Expand All @@ -55,12 +57,11 @@ find_library(ZMQ_LIBRARY
NAMES
zmq
${ZMQ_LIBRARY_NAME}
HINTS
"${ZMQ_REGISTRY_PATH}/lib"
PATHS
/lib
/usr/lib
/usr/local/lib
"${ZMQ_ROOT_DIR}/lib"
)

if (ZMQ_INCLUDE_DIR AND ZMQ_LIBRARY)
Expand All @@ -72,4 +73,4 @@ else()
endif()

# show the ZMQ_INCLUDE_DIR and ZMQ_LIBRARY variables only in the advanced view
mark_as_advanced(ZMQ_INCLUDE_DIR ZMQ_LIBRARY ZMQ_FOUND)
mark_as_advanced(ZMQ_ROOT_DIR ZMQ_INCLUDE_DIR ZMQ_LIBRARY ZMQ_FOUND)

0 comments on commit 55e7879

Please sign in to comment.