From 10c30ea5aa3e0a2d945f952c1a723adf9f60a66f Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 17 Sep 2020 14:51:33 +0000 Subject: [PATCH] link libzmq against libgssapi_krb5 if found --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 615454e3a..caabc590f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -992,6 +992,7 @@ find_path(ZMQ_INCLUDE_PATH zmq.h) find_library(ZMQ_LIB zmq) find_library(PGM_LIBRARY pgm) find_library(NORM_LIBRARY norm) +find_library(GSSAPI_LIBRARY gssapi_krb5) find_library(PROTOLIB_LIBRARY protolib) find_library(SODIUM_LIBRARY sodium) @@ -1007,6 +1008,9 @@ endif() if(NORM_LIBRARY) set(ZMQ_LIB "${ZMQ_LIB};${NORM_LIBRARY}") endif() +if(GSSAPI_LIBRARY) + set(ZMQ_LIB "${ZMQ_LIB};${GSSAPI_LIBRARY}") +endif() if(PROTOLIB_LIBRARY) set(ZMQ_LIB "${ZMQ_LIB};${PROTOLIB_LIBRARY}") endif()