aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-11-01 11:26:22 +0200
committerRiccardo Spagni <ric@spagni.net>2017-11-01 11:26:22 +0200
commitef3c77117a333d17a087c3cd94d8b02364521a63 (patch)
tree78c3515cc64e533b2e847ce74eaaf17ba0e9265e
parentMerge pull request #2663 (diff)
parentLink against libpgm/libnorm if found, optional libzmq ldependencies (diff)
downloadmonero-ef3c77117a333d17a087c3cd94d8b02364521a63.tar.xz
Merge pull request #2689
6a90506a Link against libpgm/libnorm if found, optional libzmq ldependencies (moneromooo-monero)
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 17f375c91..2964e299c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -707,6 +707,8 @@ include(version.cmake)
find_path(ZMQ_INCLUDE_PATH zmq.hpp)
find_library(ZMQ_LIB zmq)
+find_library(PGM_LIBRARY pgm)
+find_library(NORM_LIBRARY norm)
find_library(SODIUM_LIBRARY sodium)
if(NOT ZMQ_INCLUDE_PATH)
@@ -715,6 +717,12 @@ endif()
if(NOT ZMQ_LIB)
message(FATAL_ERROR "Could not find required libzmq")
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)
set(ZMQ_LIB "${ZMQ_LIB};${SODIUM_LIBRARY}")
endif()