From bb7674f2b63de618bb9f92b04b852923be4a6f71 Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Wed, 20 Jan 2016 03:05:14 +0530 Subject: [PATCH] Make use of Xinput lib only if we found it Reviewed by: mgraesslin --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdac6c578e..bf2f34d946 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -482,7 +482,10 @@ set(kwin_XLIB_LIBS ${X11_X11_LIB} ${X11_ICE_LIB} ${X11_SM_LIB} - ${X11_Xinput_LIB} +) + +if(X11_Xinput_FOUND) + set(kwin_XLIB_LIBS ${kwin_XLIB_LIBS} ${X11_Xinput_LIB} ) set(kwin_XCB_LIBS