mirror of
https://github.com/monero-project/monero.git
synced 2025-01-09 12:29:53 +00:00
fix zmq and sodium include dirs search
This commit is contained in:
parent
b089f9ee69
commit
01a653fb9f
1 changed files with 9 additions and 0 deletions
|
@ -1188,6 +1188,7 @@ endif()
|
||||||
if(NOT ZMQ_LIB)
|
if(NOT ZMQ_LIB)
|
||||||
message(FATAL_ERROR "Could not find required libzmq")
|
message(FATAL_ERROR "Could not find required libzmq")
|
||||||
endif()
|
endif()
|
||||||
|
include_directories(${ZMQ_INCLUDE_PATH})
|
||||||
if(PGM_LIBRARY)
|
if(PGM_LIBRARY)
|
||||||
set(ZMQ_LIB "${ZMQ_LIB};${PGM_LIBRARY}")
|
set(ZMQ_LIB "${ZMQ_LIB};${PGM_LIBRARY}")
|
||||||
endif()
|
endif()
|
||||||
|
@ -1201,7 +1202,15 @@ if(PROTOLIB_LIBRARY)
|
||||||
set(ZMQ_LIB "${ZMQ_LIB};${PROTOLIB_LIBRARY}")
|
set(ZMQ_LIB "${ZMQ_LIB};${PROTOLIB_LIBRARY}")
|
||||||
endif()
|
endif()
|
||||||
if(SODIUM_LIBRARY)
|
if(SODIUM_LIBRARY)
|
||||||
|
message(STATUS "ZMQ_LIB: ${ZMQ_LIB};${SODIUM_LIBRARY}")
|
||||||
set(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()
|
endif()
|
||||||
if(BSD_LIBRARY)
|
if(BSD_LIBRARY)
|
||||||
set(ZMQ_LIB "${ZMQ_LIB};${BSD_LIBRARY}")
|
set(ZMQ_LIB "${ZMQ_LIB};${BSD_LIBRARY}")
|
||||||
|
|
Loading…
Reference in a new issue