Move find_package() calls into the respective directories

All should be done except for KF5 and Qt.
I tried to go through all projects and see whether it depended on the
different modules. I would appreciate it very much if the different
maintainers could take a look and see if everything is correct.

CCMAIL: plasma-devel@kde.org
This commit is contained in:
Aleix Pol 2014-03-20 19:43:26 +01:00
parent 7c1538957d
commit 7ae2fe422c

View file

@ -114,6 +114,11 @@ set_package_properties(X11 PROPERTIES DESCRIPTION "X11 libraries"
TYPE REQUIRED
)
if(NOT OPENGL_FOUND AND NOT OPENGLES_FOUND)
message(FATAL_ERROR "Either OpenGL or OpenGL ES 2.0 are required for Compositing support in KWin.")
endif()
# All the required XCB components
find_package(XCB REQUIRED COMPONENTS
XCB