summaryrefslogtreecommitdiff
blob: 3a8d3ef0f0cb0fc0e18c475c63a7c856c7ca13cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- workspace/CMakeLists.txt    (revision 767202)
+++ workspace/CMakeLists.txt    (working copy)
@@ -16,8 +16,6 @@
 include (MacroLibrary)
 include (KDE4Defaults)

-macro_optional_find_package(OpenGL)
-
 include(ConfigureChecks.cmake)
 configure_file(config-unix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-unix.h )
 configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h )
--- workspace/kcontrol/screensaver/CMakeLists.txt
+++ workspace/kcontrol/screensaver/CMakeLists.txt
@@ -1,5 +1,7 @@
 
+if(OPENGL_FOUND)
 check_library_exists(GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL)
+endif(OPENGL_FOUND)
 configure_file (config-screensaver.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-screensaver.h )
 
 add_definitions (-DQT3_SUPPORT)