Make use of Xinput lib only if we found it

Reviewed by: mgraesslin
This commit is contained in:
Bhushan Shah 2016-01-20 03:05:14 +05:30
parent 1c344c16d9
commit bb7674f2b6

View file

@ -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