summaryrefslogtreecommitdiffstats
path: root/unix/x0vncserver
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-10-17 13:50:12 +0200
committerPierre Ossman <ossman@cendio.se>2014-10-17 13:50:12 +0200
commit42c379ef3cda9e002970a6888a256d349d3e3b39 (patch)
treeb6097349f6158a27d5c45d6c361cc9d8a935bcb7 /unix/x0vncserver
parent3e4281bfb6fa09236f8eed9ff79a45c138ce805d (diff)
downloadtigervnc-42c379ef3cda9e002970a6888a256d349d3e3b39.tar.gz
tigervnc-42c379ef3cda9e002970a6888a256d349d3e3b39.zip
Link basic X11 libraries last
The extension libraries might depend on libXext or libX11, so make sure they come last on the link line.
Diffstat (limited to 'unix/x0vncserver')
-rw-r--r--unix/x0vncserver/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/unix/x0vncserver/CMakeLists.txt b/unix/x0vncserver/CMakeLists.txt
index 64c9e779..82f0d2ac 100644
--- a/unix/x0vncserver/CMakeLists.txt
+++ b/unix/x0vncserver/CMakeLists.txt
@@ -15,7 +15,7 @@ add_executable(x0vncserver
../vncconfig/QueryConnectDialog.cxx
)
-target_link_libraries(x0vncserver tx rfb network rdr ${X11_LIBRARIES})
+target_link_libraries(x0vncserver tx rfb network rdr)
if(X11_FOUND AND X11_XTest_LIB)
add_definitions(-DHAVE_XTEST)
@@ -31,5 +31,7 @@ else()
message(WARNING "No DAMAGE extension. x0vncserver will have to use the slower polling method.")
endif()
+target_link_libraries(x0vncserver ${X11_LIBRARIES})
+
install(TARGETS x0vncserver DESTINATION ${BIN_DIR})
install(FILES x0vncserver.man DESTINATION ${MAN_DIR}/man1 RENAME x0vncserver.1)