summaryrefslogtreecommitdiff
blob: f3e6a966b4ff20c3c6eb39123f042c51d665bc69 (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(WITH_OpenGL)
 check_library_exists(GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL)
+endif(WITH_OpenGL)
 configure_file (config-screensaver.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-screensaver.h )
 
 add_definitions (-DQT3_SUPPORT)