--- a/unix/x0vncserver/CMakeLists.txt 2014-10-29 18:25:30.000000000 -0400 +++ b/unix/x0vncserver/CMakeLists.txt 2014-10-29 18:26:38.000000000 -0400 @@ -31,7 +31,7 @@ message(WARNING "No DAMAGE extension. x0vncserver will have to use the slower polling method.") endif() -target_link_libraries(x0vncserver ${X11_LIBRARIES}) +target_link_libraries(x0vncserver ${X11_LIBRARIES} -lxcb ${X11_Xdmcp_LIB} ${X11_Xau_LIB} -ldl) install(TARGETS x0vncserver DESTINATION ${BIN_DIR}) install(FILES x0vncserver.man DESTINATION ${MAN_DIR}/man1 RENAME x0vncserver.1) --- a/unix/vncconfig/CMakeLists.txt 2014-10-29 18:45:41.000000000 -0400 +++ b/unix/vncconfig/CMakeLists.txt 2014-10-29 18:46:17.000000000 -0400 @@ -9,7 +9,7 @@ vncconfig.cxx QueryConnectDialog.cxx) -target_link_libraries(vncconfig tx rfb network rdr ${X11_LIBRARIES}) +target_link_libraries(vncconfig tx rfb network rdr ${X11_LIBRARIES} -lxcb ${X11_Xdmcp_LIB} ${X11_Xau_LIB} -ldl) install(TARGETS vncconfig DESTINATION ${BIN_DIR}) install(FILES vncconfig.man DESTINATION ${MAN_DIR}/man1 RENAME vncconfig.1) --- a/vncviewer/CMakeLists.txt 2014-12-19 08:44:51.000000000 -0500 +++ b/vncviewer/CMakeLists.txt 2014-12-19 08:45:03.000000000 -0500 @@ -46,7 +46,7 @@ add_executable(vncviewer ${VNCVIEWER_SOURCES}) endif() -target_link_libraries(vncviewer ${FLTK_LIBRARIES} rfb network rdr os Xregion -lxcb ${X11_Xdmcp_LIB} ${X11_Xau_LIB} ${GETTEXT_LIBRARIES}) +target_link_libraries(vncviewer ${FLTK_LIBRARIES} rfb network rdr os Xregion -lxcb ${X11_Xdmcp_LIB} ${X11_Xau_LIB} ${GETTEXT_LIBRARIES} -ldl) if(APPLE) target_link_libraries(vncviewer "-framework Cocoa" "-framework Carbon")