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:
parent
63350c418e
commit
98d315ff20
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue