diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2020-05-03 00:48:24 +0100 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2020-05-03 01:39:46 +0100 |
commit | eb8c550cbc9fe4abfb3002d81f07be6dfbabc5a4 (patch) | |
tree | 73990f8934ace74060c192bf817474e701aebeb1 /src/rpc/CMakeLists.txt | |
parent | https://sourceware.org/bugzilla/show_bug.cgi?id=25210 (diff) | |
download | monero-eb8c550cbc9fe4abfb3002d81f07be6dfbabc5a4.tar.xz |
build: rely on pkg-config to find zmq and sodiumv0.15.0.5
if zmq was built with libnorm, libproto or libpgm, pkg-config can inform
us directly instead of having to find them. The location of zmq.h can be
obtained the same way
motivation is to remove opengpm from the list of mandatory dependencies
when monero does not have direct dependency on opengpm, but only when
zeromq is buily with pgm support which itself has hard dependency on
pyton2 which is now EOL.
Diffstat (limited to '')
-rw-r--r-- | src/rpc/CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rpc/CMakeLists.txt b/src/rpc/CMakeLists.txt index ebb1e767f..57408140c 100644 --- a/src/rpc/CMakeLists.txt +++ b/src/rpc/CMakeLists.txt @@ -26,7 +26,7 @@ # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -include_directories(SYSTEM ${ZMQ_INCLUDE_PATH}) +include_directories(SYSTEM ${ZMQ_INCLUDE_DIRS}) set(rpc_base_sources rpc_args.cpp @@ -148,7 +148,6 @@ target_link_libraries(daemon_rpc_server ${Boost_REGEX_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} - ${ZMQ_LIB} ${EXTRA_LIBRARIES}) -target_include_directories(daemon_rpc_server PUBLIC ${ZMQ_INCLUDE_PATH}) -target_include_directories(obj_daemon_rpc_server PUBLIC ${ZMQ_INCLUDE_PATH}) +target_include_directories(daemon_rpc_server PUBLIC ${ZMQ_INCLUDE_DIRS}) +target_include_directories(obj_daemon_rpc_server PUBLIC ${ZMQ_INCLUDE_DIRS}) |