We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fad216 commit 31884b7Copy full SHA for 31884b7
graf3d/rglew/CMakeLists.txt
@@ -14,20 +14,27 @@
14
# compile the corresponding source files.
15
# For now hardcode for linux.
16
17
+set(rglew_libs OpenGL::GL)
18
+
19
+find_library(DL_LIBRARY_PATH dl)
20
+if (DL_LIBRARY_PATH)
21
+ list(APPEND rglew_libs dl)
22
+endif()
23
24
if(x11)
25
+ list(APPEND rglew_libs ${X11_LIBRARIES})
26
ROOT_LINKER_LIBRARY(RGlew
27
src/gl.c
28
src/glx.c
29
LIBRARIES
- OpenGL::GL
- ${X11_LIBRARIES}
30
+ ${rglew_libs}
31
)
32
else()
33
34
35
# src/wgl.c
36
37
38
39
endif()
40
0 commit comments