Improve handling of KWIN_HAVE_EGL in CMakeLists.txt
KWIN_HAVE_EGL was set to EGL_FOUND which doesn't make sense as EGL is marked as a runtime dependency. Instead a new build option KWIN_BUILD_EGL is added defaulting to ON. If set to OFF neither the X11 nor the Wayland EGL backend are built. CCBUG: 340171
This commit is contained in:
parent
87878572de
commit
0a6a69b2d0
1 changed files with 2 additions and 1 deletions
|
@ -193,6 +193,7 @@ option(KWIN_BUILD_KAPPMENU "Enable building of KWin with application menu suppor
|
|||
option(KWIN_BUILD_XRENDER_COMPOSITING "Enable building of KWin with XRender Compositing support" ON)
|
||||
cmake_dependent_option(KWIN_BUILD_ACTIVITIES "Enable building of KWin with kactivities support" ON "KF5Activities_FOUND" OFF)
|
||||
option(KWIN_PLASMA_ACTIVE "Enable building KWin for Plasma Active." OFF)
|
||||
option(KWIN_BUILD_EGL "Enables building the EGL backend in KWin" ON)
|
||||
|
||||
option(KWIN_BUILD_COVERAGE "Build KWin with gcov support" OFF)
|
||||
|
||||
|
@ -238,7 +239,7 @@ if( KWIN_BUILD_XRENDER_COMPOSITING )
|
|||
set( KWIN_HAVE_XRENDER_COMPOSITING 1 )
|
||||
endif()
|
||||
|
||||
set(KWIN_HAVE_EGL ${EGL_FOUND})
|
||||
set(KWIN_HAVE_EGL ${KWIN_BUILD_EGL})
|
||||
|
||||
if (XKB_FOUND)
|
||||
include_directories(${XKB_INCLUDE_DIR})
|
||||
|
|
Loading…
Reference in a new issue