fixed problem with OpenGL not linking correctly the variable was OPENGL_LIBRARIES not OpenGL_LIBRARY :P