From 8159b75be36e8e4393bda09606e782de399ef50e Mon Sep 17 00:00:00 2001 From: xiphon Date: Thu, 2 Jul 2020 23:09:59 +0000 Subject: [PATCH] cmake: fix monero-wallet-gui target dependencies --- CMakeLists.txt | 4 ---- src/CMakeLists.txt | 20 +++++++------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ccd7e30..e1e6fb1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -486,7 +486,3 @@ if (HIDAPI_FOUND OR LibUSB_COMPILE_TEST_PASSED) endif() add_subdirectory(src) - -# Required to make wallet_merged build before the gui -add_dependencies(monero-wallet-gui wallet_merged) - diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2027e2fd..a1cc871d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -126,22 +126,16 @@ target_compile_definitions(monero-wallet-gui set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") -if(INSTALL_VENDORED_LIBUNBOUND) - set(UNBOUND_LIBRARY ${CMAKE_BINARY_DIR}/monero/external/unbound/libunbound.a) -else() - set(UNBOUND_LIBRARY unbound) -endif() - target_link_libraries(monero-wallet-gui - ${CMAKE_BINARY_DIR}/lib/libwallet_merged.a + wallet_merged ${LMDB_LIBRARY} - ${CMAKE_BINARY_DIR}/monero/contrib/epee/src/libepee.a - ${UNBOUND_LIBRARY} + epee + unbound ${SODIUM_LIBRARY} - ${CMAKE_BINARY_DIR}/monero/external/easylogging++/libeasylogging.a - ${CMAKE_BINARY_DIR}/monero/src/blockchain_db/libblockchain_db.a - ${CMAKE_BINARY_DIR}/monero/external/randomx/librandomx.a - ${CMAKE_BINARY_DIR}/monero/src/hardforks/libhardforks.a + easylogging + blockchain_db + randomx + hardforks ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${CMAKE_DL_LIBS}