summaryrefslogtreecommitdiff
path: root/games-sports/xmoto/files/xmoto-0.6.3-find_opengl.patch
blob: 33c756231d5755b69a067883acb1019de9a3288d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
avoid find_package(OpenGL) that requires GLX
check glu because that's what xmoto uses
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -39,7 +39,7 @@ find_package(LibLZMA)
 find_package(LibXml2 REQUIRED)
 
 if(USE_OPENGL)
-  find_package(OpenGL REQUIRED)
+  pkg_check_modules(OPENGL glu REQUIRED)
 endif()
 
 if(APPLE)