File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,16 @@ find_package(ZeroMQ QUIET)
10
10
11
11
# libzmq autotools install: fallback to pkg-config
12
12
if (NOT ZeroMQ_FOUND )
13
- # try again with pkg-config (normal install of zeromq)
13
+ message ( STATUS "CMake libzmq package not found, trying again with pkg-config (normal install of zeromq)" )
14
14
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR} /libzmq-pkg-config )
15
15
find_package (ZeroMQ REQUIRED )
16
16
endif ()
17
17
18
+ # TODO "REQUIRED" above should already cause a fatal failure if not found, but this doesn't seem to work
19
+ if (NOT ZeroMQ_FOUND )
20
+ message (FATAL_ERROR "ZeroMQ was not found, neither as a CMake package nor via pkg-config" )
21
+ endif ()
22
+
18
23
if (ZeroMQ_FOUND AND (NOT TARGET libzmq OR NOT TARGET libzmq-static ))
19
24
message (FATAL_ERROR "ZeroMQ version not supported!" )
20
25
endif ()
You can’t perform that action at this time.
0 commit comments