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

View file

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