From 81f889df103ae569322d1899c8cb21d5686cc23c Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Tue, 6 Oct 2020 12:47:32 -0400 Subject: [PATCH] Correct order of linking monero libs --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 446ce84..665e29c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,7 +164,7 @@ set_property(TARGET monero::libraries PROPERTY ) set_property(TARGET monero::libraries PROPERTY INTERFACE_LINK_LIBRARIES - ${CMAKE_DL_LIBS} + ${IMPORTED_MONERO_LIBRARIES} ${Boost_CHRONO_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_REGEX_LIBRARY} @@ -176,7 +176,7 @@ set_property(TARGET monero::libraries PROPERTY ${monero_OPENSSL_SSL_LIBRARY} ${monero_SODIUM_LIBRARY} ${monero_UNBOUND_LIBRARIES} - ${IMPORTED_MONERO_LIBRARIES} + ${CMAKE_DL_LIBS} ) set(LMDB_INCLUDE "${monero_LMDB_INCLUDE}")