diff --git a/CMakeLists.txt b/CMakeLists.txt index 4366a94d88..eecf901ccf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,11 +16,11 @@ if( KWIN_HAVE_COMPOSITING AND X11_Xrender_FOUND AND X11_Xfixes_FOUND ) endif( KWIN_HAVE_COMPOSITING AND X11_Xrender_FOUND AND X11_Xfixes_FOUND ) # KWIN_HAVE_OPENGLES_COMPOSITING - whether OpenGL ES-based compositing support is available -if( KWIN_HAVE_COMPOSITING AND OPENGLES_FOUND ) +if( KWIN_HAVE_COMPOSITING AND OPENGLES_FOUND AND KWIN_BUILD_WITH_OPENGLES) set( KWIN_HAVE_OPENGL_COMPOSITING 1) set( KWIN_HAVE_OPENGLES_COMPOSITING 1 ) - message("Comiling KWin for mobile.") -endif( KWIN_HAVE_COMPOSITING AND OPENGLES_FOUND ) + message("Compiling KWin for mobile.") +endif( KWIN_HAVE_COMPOSITING AND OPENGLES_FOUND AND KWIN_BUILD_WITH_OPENGLES ) # safety if( KWIN_HAVE_OPENGL_COMPOSITING OR KWIN_HAVE_XRENDER_COMPOSITING )