aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-06-19 16:58:28 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-06-19 16:58:28 -0500
commit0b2e74cdb57c16e0036f390d30008f3046d0b28c (patch)
tree072d61f6f60b2d56e548bee02b17fb80e45a5252 /src
parent3fee17e564bcbd1ed8824f4b8f7665d1ae076903 (diff)
parenta3fc6754e084199108ca46d690e8a08f2be0e99b (diff)
downloadmonzero-gui-0b2e74cdb57c16e0036f390d30008f3046d0b28c.tar.gz
monzero-gui-0b2e74cdb57c16e0036f390d30008f3046d0b28c.tar.xz
monzero-gui-0b2e74cdb57c16e0036f390d30008f3046d0b28c.zip
Merge pull request #2963
a3fc675 cmake: fix x11 linking (xiphon)
Diffstat (limited to 'src')
-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}