Merge pull request #8448 from aguinet/fix/cmake_ogl cmake: set OpenGL_GL_PREFERENCE as a cached variable that can be modi…