changeset 107:5b9af103a355

Allow developers to overwrite the hardcoded xkb-common libname
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 21 Mar 2014 15:48:27 +0000
parents 37198bd07182
children 39c42b5a5693
files ui/CMakeLists.txt
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
 

http://wald.intevation.org/projects/trustbridge/