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 3811ed4 commit 5713b9dCopy full SHA for 5713b9d
graf3d/rglew/CMakeLists.txt
@@ -14,14 +14,22 @@
14
# compile the corresponding source files.
15
# For now hardcode for linux.
16
17
-ROOT_LINKER_LIBRARY(RGlew
18
- src/gl.c
19
-# src/wgl.c
20
- src/glx.c
21
-LIBRARIES
22
- OpenGL::GL
23
- ${X11_LIBRARIES}
24
-)
+if(x11)
+ ROOT_LINKER_LIBRARY(RGlew
+ src/gl.c
+ src/glx.c
+ LIBRARIES
+ OpenGL::GL
+ ${X11_LIBRARIES}
+ )
25
+else()
26
27
28
+ # src/wgl.c
29
30
31
32
+endif()
33
34
# Is this needed?
35
target_include_directories(RGlew PRIVATE ${CMAKE_SOURCE_DIR}/graf3d/rglew/inc/)
0 commit comments