The mentioned changeset fixes a warning for most of the newer versions and is since CMake 3.11 the default.
It selects by default the newer OpenGL libs. To force the usage of the old library set the CMake variable OpenGL_GL_PREFERENCE to LEGACY (maybe by adding -DOpenGL_GL_PREFERENCE=LEGACY to the CMake command line.)
The mentioned changeset fixes a warning for most of the newer versions and is since CMake 3.11 the default. GL_PREFERENCE to LEGACY (maybe by adding -DOpenGL_ GL_PREFERENCE= LEGACY to the CMake command line.)
It selects by default the newer OpenGL libs. To force the usage of the old library set the CMake variable OpenGL_