blob: 6f2ae359c80c04f7df60cc95b221d9ad85ddda80 (
plain)
1
2
3
4
5
6
7
8
9
|
Allow linking on a GLX-less system.
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -87 +87 @@
- find_package(OpenGL REQUIRED)
+ find_package(OpenGL REQUIRED COMPONENTS OpenGL )
@@ -195 +195 @@
- set( OPENGL_LDFLAGS ${OPENGL_LIBRARIES} )
+ set( OPENGL_LDFLAGS OpenGL::OpenGL )
|