--- workspace/krunner/lock/CMakeLists.txt (revision 766878) +++ workspace/krunner/lock/CMakeLists.txt (working copy) @@ -5,7 +5,9 @@ ########### next target ############### check_library_exists(Xxf86misc XF86MiscSetGrabKeysState "" HAVE_XF86MISCSETGRABKEYSSTATE) +if(OPENGL_FOUND) check_library_exists(GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL) +endif(OPENGL_FOUND) configure_file(config-krunner-lock.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-krunner-lock.h)