--- 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)