Fix KWin build failure when OpenGL is disabled and OpenGLES is enabled.
Some old restructuring caused -DKWIN_HAVE_OPENGLES to no longer be passed to the compiler, causing OpenGL-specific code to be built while the libraries to link it were not available. REVIEW: 104558
This commit is contained in:
parent
309868e803
commit
c04fca92f9
3 changed files with 10 additions and 10 deletions
|
@ -117,9 +117,9 @@ if( NOT KWIN_MOBILE_EFFECTS )
|
|||
include( windowgeometry/CMakeLists.txt )
|
||||
include( zoom/CMakeLists.txt )
|
||||
|
||||
if( NOT KWIN_HAVE_OPENGLES_COMPOSITING )
|
||||
if( NOT OPENGLES_FOUND )
|
||||
include( logout/CMakeLists.txt )
|
||||
endif( NOT KWIN_HAVE_OPENGLES_COMPOSITING )
|
||||
endif( NOT OPENGLES_FOUND )
|
||||
endif( NOT KWIN_MOBILE_EFFECTS )
|
||||
|
||||
# OpenGL-specific effects
|
||||
|
|
|
@ -18,7 +18,7 @@ target_link_libraries(kcm_kwincompositing ${KDE4_KCMUTILS_LIBS} ${KDE4_KDEUI_LIB
|
|||
install(TARGETS kcm_kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR} )
|
||||
|
||||
# CompositingPrefs uses OpenGL
|
||||
if(OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING)
|
||||
if(OPENGL_FOUND)
|
||||
target_link_libraries(kcm_kwincompositing kwinglutils ${OPENGL_gl_LIBRARY})
|
||||
set_target_properties(kcm_kwincompositing PROPERTIES COMPILE_FLAGS -DKWIN_HAVE_OPENGL)
|
||||
# -ldl used by OpenGL code
|
||||
|
@ -26,11 +26,11 @@ if(OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING)
|
|||
if (DL_LIBRARY)
|
||||
target_link_libraries(kcm_kwincompositing ${DL_LIBRARY})
|
||||
endif(DL_LIBRARY)
|
||||
endif(OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING)
|
||||
if(KWIN_HAVE_OPENGLES_COMPOSITING)
|
||||
endif(OPENGL_FOUND)
|
||||
if(OPENGLES_FOUND)
|
||||
target_link_libraries(kcm_kwincompositing kwinglesutils ${OPENGLES_LIBRARIES})
|
||||
set_target_properties(kcm_kwincompositing PROPERTIES COMPILE_FLAGS "-DKWIN_HAVE_OPENGL -DKWIN_HAVE_OPENGLES")
|
||||
endif(KWIN_HAVE_OPENGLES_COMPOSITING)
|
||||
endif(OPENGLES_FOUND)
|
||||
if (X11_Xrender_FOUND)
|
||||
target_link_libraries(kcm_kwincompositing ${X11_Xrender_LIB})
|
||||
endif (X11_Xrender_FOUND)
|
||||
|
|
|
@ -14,7 +14,7 @@ target_link_libraries( kcm_kwinscreenedges ${X11_LIBRARIES} kworkspace ${KDE4_PL
|
|||
install( TARGETS kcm_kwinscreenedges DESTINATION ${PLUGIN_INSTALL_DIR} )
|
||||
|
||||
# CompositingPrefs uses OpenGL
|
||||
if( OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING )
|
||||
if( OPENGL_FOUND )
|
||||
target_link_libraries( kcm_kwinscreenedges kwinglutils ${OPENGL_gl_LIBRARY} )
|
||||
set_target_properties(kcm_kwinscreenedges PROPERTIES COMPILE_FLAGS -DKWIN_HAVE_OPENGL)
|
||||
# -ldl used by OpenGL code
|
||||
|
@ -22,11 +22,11 @@ if( OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING )
|
|||
if( DL_LIBRARY )
|
||||
target_link_libraries( kcm_kwinscreenedges ${DL_LIBRARY} )
|
||||
endif( DL_LIBRARY )
|
||||
endif( OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING )
|
||||
if(KWIN_HAVE_OPENGLES_COMPOSITING)
|
||||
endif( OPENGL_FOUND )
|
||||
if(OPENGLES_FOUND)
|
||||
target_link_libraries(kcm_kwinscreenedges kwinglesutils ${OPENGLES_LIBRARIES})
|
||||
set_target_properties(kcm_kwinscreenedges PROPERTIES COMPILE_FLAGS "-DKWIN_HAVE_OPENGL -DKWIN_HAVE_OPENGLES")
|
||||
endif(KWIN_HAVE_OPENGLES_COMPOSITING)
|
||||
endif(OPENGLES_FOUND)
|
||||
if( X11_Xrender_FOUND )
|
||||
target_link_libraries( kcm_kwinscreenedges ${X11_Xrender_LIB} )
|
||||
endif( X11_Xrender_FOUND )
|
||||
|
|
Loading…
Reference in a new issue