From 42c379ef3cda9e002970a6888a256d349d3e3b39 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 17 Oct 2014 13:50:12 +0200 Subject: [PATCH] Link basic X11 libraries last The extension libraries might depend on libXext or libX11, so make sure they come last on the link line. --- unix/x0vncserver/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.5