Detect all that's needed for compositing support.
svn path=/trunk/KDE/kdebase/workspace/; revision=684195
This commit is contained in:
parent
8275d82008
commit
afa2ed19cb
1 changed files with 10 additions and 3 deletions
|
@ -103,6 +103,13 @@ install( FILES org.kde.KWin.xml DESTINATION ${DBUS_INTERFACES_DIR} )
|
|||
|
||||
kde4_install_icons( ${ICON_INSTALL_DIR} )
|
||||
|
||||
|
||||
SET(KWIN_COMPOSITE_ENABLED X11_Xrender_FOUND AND X11_Xcomposite_FOUND)
|
||||
macro_log_feature(KWIN_COMPOSITE_ENABLED "Compositing support" "XRender and XComposite extensions are required for KWin compositing support" "http://www.x.org/")
|
||||
# cmake apparently doesn't allow nested ()'s in if(), so write as multiple if()'s
|
||||
if( X11_Xcomposite_FOUND AND X11_Xdamage_FOUND )
|
||||
if( OPENGL_FOUND )
|
||||
SET(KWIN_COMPOSITE_ENABLED TRUE)
|
||||
endif( OPENGL_FOUND )
|
||||
if( X11_Xrender_FOUND AND X11_Xfixes_FOUND )
|
||||
SET(KWIN_COMPOSITE_ENABLED TRUE)
|
||||
endif( X11_Xrender_FOUND AND X11_Xfixes_FOUND )
|
||||
endif( X11_Xcomposite_FOUND AND X11_Xdamage_FOUND )
|
||||
macro_log_feature(KWIN_COMPOSITE_ENABLED "Compositing support" "XComposite and XDamage extensions and OpenGL or XRender with XFixes are required for KWin compositing support" "http://www.x.org/")
|
||||
|
|
Loading…
Reference in a new issue