-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathFindZmq.cmake
More file actions
60 lines (54 loc) · 1.89 KB
/
FindZmq.cmake
File metadata and controls
60 lines (54 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
###############################################################################
# Copyright (c) 2014-2026 libbitcoin-protocol developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
###############################################################################
# FindZmq
#
# Use this module by invoking find_package with the form::
#
# find_package( Zmq
# [version] # Minimum version
# [REQUIRED] # Fail with error if zmq is not found
# )
#
# Defines the following for use:
#
# zmq_FOUND - true if headers and requested libraries were found
# zmq_INCLUDE_DIRS - include directories for zmq libraries
# zmq_LIBRARY_DIRS - link directories for zmq libraries
# zmq_LIBRARIES - zmq libraries to be linked
# zmq_PKG - zmq pkg-config package specification.
#
if (MSVC)
if ( Zmq_FIND_REQUIRED )
set( _zmq_MSG_STATUS "SEND_ERROR" )
else ()
set( _zmq_MSG_STATUS "STATUS" )
endif()
set( zmq_FOUND false )
message( ${_zmq_MSG_STATUS} "MSVC environment detection for 'zmq' not currently supported." )
else ()
# required
if ( Zmq_FIND_REQUIRED )
set( _zmq_REQUIRED "REQUIRED" )
endif()
# quiet
if ( Zmq_FIND_QUIETLY )
set( _zmq_QUIET "QUIET" )
endif()
# modulespec
if ( Zmq_FIND_VERSION_COUNT EQUAL 0 )
set( _zmq_MODULE_SPEC "libzmq" )
else ()
if ( Zmq_FIND_VERSION_EXACT )
set( _zmq_MODULE_SPEC_OP "=" )
else ()
set( _zmq_MODULE_SPEC_OP ">=" )
endif()
set( _zmq_MODULE_SPEC "libzmq ${_zmq_MODULE_SPEC_OP} ${Zmq_FIND_VERSION}" )
endif()
pkg_check_modules( zmq ${_zmq_REQUIRED} ${_zmq_QUIET} "${_zmq_MODULE_SPEC}" )
set( zmq_PKG "${_zmq_MODULE_SPEC}" )
endif()