aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-06-19 21:50:42 +0000
committerxiphon <xiphon@protonmail.com>2020-06-19 21:50:42 +0000
commita3fc6754e084199108ca46d690e8a08f2be0e99b (patch)
tree74c677b4eb5e51014fe8b25256847deb0ff94792
parent8354c251c5ba5b1b90598444d2a991f8aaaabd5a (diff)
downloadmonzero-gui-a3fc6754e084199108ca46d690e8a08f2be0e99b.tar.gz
monzero-gui-a3fc6754e084199108ca46d690e8a08f2be0e99b.tar.xz
monzero-gui-a3fc6754e084199108ca46d690e8a08f2be0e99b.zip
cmake: fix x11 linking
-rw-r--r--src/CMakeLists.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index cc940e96..2027e2fd 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -126,11 +126,6 @@ target_compile_definitions(monero-wallet-gui
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
-if(X11_FOUND)
- target_link_libraries(monero-wallet-gui ${X11_LIBRARIES} pthread dl xcb X11)
-endif()
-
-
if(INSTALL_VENDORED_LIBUNBOUND)
set(UNBOUND_LIBRARY ${CMAKE_BINARY_DIR}/monero/external/unbound/libunbound.a)
else()
@@ -162,6 +157,10 @@ if(DEVICE_TREZOR_READY)
target_link_libraries(monero-wallet-gui ${TREZOR_DEP_LIBS})
endif()
+if(X11_FOUND)
+ target_link_libraries(monero-wallet-gui ${X11_LIBRARIES})
+endif()
+
if(WITH_SCANNER)
target_link_libraries(monero-wallet-gui
${ZBAR_LIBRARIES}