# HG changeset patch # User Andre Heinecke # Date 1395416907 0 # Node ID 5b9af103a3558958277eb589607a42b51227dcdb # Parent 37198bd07182017d98b06aa5e1757dfa47c5433f Allow developers to overwrite the hardcoded xkb-common libname diff -r 37198bd07182 -r 5b9af103a355 ui/CMakeLists.txt --- a/ui/CMakeLists.txt Fri Mar 21 15:01:25 2014 +0000 +++ b/ui/CMakeLists.txt Fri Mar 21 15:48:27 2014 +0000 @@ -35,11 +35,17 @@ # The following list is taken from the .pri file get_target_property(_loc Qt5::Widgets LOCATION) get_filename_component(_qtpath ${_loc} PATH) + + if(NOT XKBCOMMON_LIB) + # Hack on a hack to overwrite the xkbcommon libname. + set(XKBCOMMON_LIB -lxkbcommon) + endif + set(XCB_EXTRA_LIBS -L${_qtpath} -lX11 -lX11-xcb -lXi -lxcb-render-util -lXrender -lSM -lICE -lxcb-render -ldbus-1 -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr - -lxkbcommon -lxcb-shape -lxcb-keysyms -lQt5PlatformSupport + ${XKBCOMMON_LIB} -lxcb-shape -lxcb-keysyms -lQt5PlatformSupport -lfreetype -lQt5DBus -lQt5Gui -ljpeg -lpng -lQt5Core -lz -lm -ldl -lrt -lpthread)