Make use of Xinput lib only if we found it

Reviewed by: mgraesslin
icc-effect-5.14.5
Bhushan Shah 2016-01-20 03:05:14 +05:30
parent 1c344c16d9
commit bb7674f2b6
1 changed files with 4 additions and 1 deletions

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