Only link against GLES if building for GLES.
It took me two hours to figure out that kwineffects linked the GLES libraries and that was causing my kwin not to work :-(icc-effect-5.14.5
parent
15155326e2
commit
d9dc5afae4
|
@ -55,11 +55,11 @@ if(OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING)
|
|||
endif(DL_LIBRARY)
|
||||
include_directories(${OPENGL_INCLUDE_DIR})
|
||||
endif(OPENGL_FOUND AND NOT KWIN_HAVE_OPENGLES_COMPOSITING)
|
||||
if(OPENGLES_FOUND)
|
||||
if(KWIN_HAVE_OPENGLES_COMPOSITING)
|
||||
target_link_libraries(kwineffects ${OPENGLES_LIBRARIES} ${OPENGLES_EGL_LIBRARIES})
|
||||
target_link_libraries(kwineffects LINK_INTERFACE_LIBRARIES ${OPENGLES_LIBRARIES} ${OPENGLES_EGL_LIBRARIES})
|
||||
include_directories(${OPENGLES_INCLUDE_DIR})
|
||||
endif(OPENGLES_FOUND)
|
||||
endif(KWIN_HAVE_OPENGLES_COMPOSITING)
|
||||
if (X11_Xrender_FOUND)
|
||||
target_link_libraries(kwineffects ${X11_Xrender_LIB})
|
||||
endif (X11_Xrender_FOUND)
|
||||
|
|
Loading…
Reference in New Issue