]> source.dussan.org Git - tigervnc.git/commitdiff
Link x0vncserver against Xtst, if it was detected (otherwise x0vncserver is view...
authorDRC <dcommander@users.sourceforge.net>
Fri, 19 Aug 2011 16:41:06 +0000 (16:41 +0000)
committerDRC <dcommander@users.sourceforge.net>
Fri, 19 Aug 2011 16:41:06 +0000 (16:41 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4644 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/x0vncserver/CMakeLists.txt

index 9a52da20ff482cbf88565ba325e602e34f317d78..bdd64827683e3922e6a1c4e6f73c272b69b07d0a 100644 (file)
@@ -16,6 +16,12 @@ add_executable(x0vncserver
 )
 
 target_link_libraries(x0vncserver tx rfb network rdr ${X11_LIBRARIES})
+if(X11_FOUND AND X11_XTest_LIB)
+  add_definitions(-DHAVE_XTEST)
+  target_link_libraries(x0vncserver ${X11_XTest_LIB})
+else()
+  message(WARNING "No XTest extension.  x0vncserver will be view-only.")
+endif()
 
 install(TARGETS x0vncserver DESTINATION bin)
 install(FILES x0vncserver.man DESTINATION man/man1 RENAME x0vncserver.1)