mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 01:12:39 +00:00
Link against libpgm/libnorm if found, optional libzmq ldependencies
This commit is contained in:
parent
8d511f3c24
commit
6a90506a8d
1 changed files with 8 additions and 0 deletions
|
@ -702,6 +702,8 @@ include(version.cmake)
|
||||||
|
|
||||||
find_path(ZMQ_INCLUDE_PATH zmq.hpp)
|
find_path(ZMQ_INCLUDE_PATH zmq.hpp)
|
||||||
find_library(ZMQ_LIB zmq)
|
find_library(ZMQ_LIB zmq)
|
||||||
|
find_library(PGM_LIBRARY pgm)
|
||||||
|
find_library(NORM_LIBRARY norm)
|
||||||
find_library(SODIUM_LIBRARY sodium)
|
find_library(SODIUM_LIBRARY sodium)
|
||||||
|
|
||||||
if(NOT ZMQ_INCLUDE_PATH)
|
if(NOT ZMQ_INCLUDE_PATH)
|
||||||
|
@ -710,6 +712,12 @@ 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()
|
||||||
|
if(PGM_LIBRARY)
|
||||||
|
set(ZMQ_LIB "${ZMQ_LIB};${PGM_LIBRARY}")
|
||||||
|
endif()
|
||||||
|
if(NORM_LIBRARY)
|
||||||
|
set(ZMQ_LIB "${ZMQ_LIB};${NORM_LIBRARY}")
|
||||||
|
endif()
|
||||||
if(SODIUM_LIBRARY)
|
if(SODIUM_LIBRARY)
|
||||||
set(ZMQ_LIB "${ZMQ_LIB};${SODIUM_LIBRARY}")
|
set(ZMQ_LIB "${ZMQ_LIB};${SODIUM_LIBRARY}")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue