Closed piedar closed 1 year ago
Now cmake recommends IMPORTED targets for OpenGL and GLUT so switch to those for future compatibility. Also set(OpenGL_GL_PREFERENCE "GLVND") to silence warnings in case multiple OpenGL implementations are installed.
IMPORTED
set(OpenGL_GL_PREFERENCE "GLVND")
Now cmake recommends
IMPORTED
targets for OpenGL and GLUT so switch to those for future compatibility. Alsoset(OpenGL_GL_PREFERENCE "GLVND")
to silence warnings in case multiple OpenGL implementations are installed.