Tell cmake that we prefer GLVND.

Yamagi Quake II runs fine with GLVND, most modern distros are using it,
so tell cmake about it and prevent some warnings.
This commit is contained in:
Yamagi Burmeister 2018-08-07 09:04:46 +02:00
parent 63350c418e
commit 98d315ff20
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ find_package(SDL2 REQUIRED)
list(APPEND yquake2IncludeDirectories "${SDL2_INCLUDE_DIR}/..")
list(APPEND yquake2SDLLinkerFlags ${SDL2_LIBRARY})
set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED)
list(APPEND yquake2IncludeDirectories ${OPENGL_INCLUDE_DIR})
list(APPEND yquake2OpenGLLinkerFlags ${OPENGL_LIBRARIES})