diff options
author | Teo Mrnjavac <teo@kde.org> | 2013-09-18 12:53:07 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-20 23:45:06 +0200 |
commit | 132190c3a206f1a7682f9972c94a83584ff3c6a4 (patch) | |
tree | e56ac2a51b918de97f45d9eb8e79dc469b6a86d2 /src/plugins/platforms/xcb/xcb-plugin.pro | |
parent | de1f9bdc153176116902e8766e6c46ab6150eda4 (diff) |
Build X11 session management only if dependencies are found
This fixes the build breakage caused by Change I50b33d05 when attempting
to compile on Linux with session management enabled but libSM and/or
libICE not present.
Change-Id: I127f32e7041deb2ff968eae8458fee7d4e95d7a5
Reviewed-by: Samuel Gaist <samuel.gaist@edeltech.ch>
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: aavit <eirik.aavitsland@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/xcb-plugin.pro')
-rw-r--r-- | src/plugins/platforms/xcb/xcb-plugin.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/xcb-plugin.pro b/src/plugins/platforms/xcb/xcb-plugin.pro index 341c33e8e6..4f69ca8aab 100644 --- a/src/plugins/platforms/xcb/xcb-plugin.pro +++ b/src/plugins/platforms/xcb/xcb-plugin.pro @@ -74,6 +74,7 @@ contains(QT_CONFIG, xcb-render) { # build with session management support contains(QT_CONFIG, xcb-sm) { + DEFINES += XCB_USE_SM LIBS += -lSM -lICE SOURCES += qxcbsessionmanager.cpp HEADERS += qxcbsessionmanager.h |