mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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})
|
||||||
|
|
Loading…
Reference in a new issue