From 7ae2fe422c2f12de887bc7dcce1001ce248d3e18 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 20 Mar 2014 19:43:26 +0100 Subject: [PATCH] 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 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8a10b3d98..cd3781c64e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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