      zmakecert
      czmq-static
 -    ${LIBZMQ_LIBRARIES}
-+    ${ZeroMQ_LIBRARIES}
++    ${ZeroMQ_LIBRARY}
      ${OPTIONAL_LIBRARIES}
  )
  endif()

-    list(APPEND MORE_LIBRARIES ${LIBZMQ_LIBRARIES})
+find_package(ZeroMQ REQUIRED)
+IF (ZeroMQ_FOUND)
+    include_directories(${ZeroMQ_INCLUDE_DIRS})
+    list(APPEND MORE_LIBRARIES ${ZeroMQ_LIBRARIES})
     set(pkg_config_libs_private "${pkg_config_libs_private} -lzmq")
-ELSE (LIBZMQ_FOUND)
-    message( FATAL_ERROR "libzmq not found." )

 
   target_link_libraries(czmq
-    ${ZEROMQ_LIBRARIES} ${MORE_LIBRARIES}
+    ${ZeroMQ_LIBRARY} ${MORE_LIBRARIES}
   )
 
   install(TARGETS czmq
