From 01a653fb9f5c40fe2f9096e0c25a63490ceabc40 Mon Sep 17 00:00:00 2001 From: nsec1 <167650977+nsec1@users.noreply.github.com> Date: Fri, 6 Sep 2024 06:57:55 -0300 Subject: [PATCH] fix zmq and sodium include dirs search --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fb03ba1f..85ca2e173 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1188,6 +1188,7 @@ endif() if(NOT ZMQ_LIB) message(FATAL_ERROR "Could not find required libzmq") endif() +include_directories(${ZMQ_INCLUDE_PATH}) if(PGM_LIBRARY) set(ZMQ_LIB "${ZMQ_LIB};${PGM_LIBRARY}") endif() @@ -1201,7 +1202,15 @@ if(PROTOLIB_LIBRARY) set(ZMQ_LIB "${ZMQ_LIB};${PROTOLIB_LIBRARY}") endif() if(SODIUM_LIBRARY) + message(STATUS "ZMQ_LIB: ${ZMQ_LIB};${SODIUM_LIBRARY}") set(ZMQ_LIB "${ZMQ_LIB};${SODIUM_LIBRARY}") + find_path(SODIUM_INCLUDE_PATH sodium/crypto_verify_32.h) + if (SODIUM_INCLUDE_PATH) + message(STATUS "SODIUM_INCLUDE_PATH: ${SODIUM_INCLUDE_PATH}") + include_directories(${SODIUM_INCLUDE_PATH}) + else() + message(FATAL_ERROR "Could not find required sodium/crypto_verify_32.h") + endif() endif() if(BSD_LIBRARY) set(ZMQ_LIB "${ZMQ_LIB};${BSD_LIBRARY}")