Set OpenGL preference to GLVND
authorShadowNinja <shadowninja@minetest.net>
Sat, 18 Aug 2018 15:37:30 +0000 (11:37 -0400)
committerShadowNinja <ShadowNinja@users.noreply.github.com>
Sat, 18 Aug 2018 18:23:41 +0000 (14:23 -0400)
This silences a CMake warning introduced in CMAKE 3.11.

src/CMakeLists.txt

index 60fff18ffb9a53da7a85698301a7840b06ea4b16..dbb9e5c6a9ab638d1e6af3e0afc0aa0a91a4d90c 100644 (file)
@@ -296,6 +296,7 @@ else()
                if(NOT HAIKU)
                        find_package(X11 REQUIRED)
                endif(NOT HAIKU)
+               set(OpenGL_GL_PREFERENCE "GLVND")
                find_package(OpenGL REQUIRED)
                find_package(JPEG REQUIRED)
                find_package(BZip2 REQUIRED)