From e47992d800fc789fc9926ee72b9c024c0ec4c431 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Wed, 18 Sep 2013 08:57:44 -0700 Subject: [PATCH] Actually looking for both ZMQ and PyZMQ now. --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a9ca90..5384817 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,13 +79,16 @@ endif() # Find ZMQ and get version ######################################################################## include(FindZeroMQ) +if(NOT ZEROMQ_FOUND) + message(FATAL_ERROR "ZMQ not found.") +endif() ######################################################################## # Find PyZMQ bindings ######################################################################## include(GrPython) -GR_PYTHON_CHECK_MODULE("PyZMQ" "zmq" "int(zmq.__version__.split('.')[0]) >= 13" ZMQ_FOUND) -if(NOT ZMQ_FOUND) +GR_PYTHON_CHECK_MODULE("PyZMQ" "zmq" "int(zmq.__version__.split('.')[0]) >= 13" PYZMQ_FOUND) +if(NOT PYZMQ_FOUND) message(FATAL_ERROR "Python ZMQ bindings not found.") endif()