We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0051a4f commit 58264bdCopy full SHA for 58264bd
1 file changed
external/include/CMakeLists.txt
@@ -2,9 +2,16 @@
2
set( INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" )
3
4
set( GL_HEADERS
5
- ${INCLUDE_DIR}/GL/gl_format.h
6
- ${INCLUDE_DIR}/GL/glext.h
7
- ${INCLUDE_DIR}/GL/wglext.h )
+ ${INCLUDE_DIR}/GL/gl_format.h )
+
+# These can be dropped by some subsetted source distributions since
8
+# they ought to exist, if required, in your OpenGL SDK package.
9
+foreach(FN ${INCLUDE_DIR}/GL/glext.h ${INCLUDE_DIR}/GL/wglext.h)
10
+ if(EXISTS "${FN}")
11
+ list(APPEND GL_HEADERS "${FN}")
12
+ endif()
13
+endforeach()
14
15
set( UTILS_HEADERS
16
${INCLUDE_DIR}/utils/algebra.h
17
${INCLUDE_DIR}/utils/sysinfo.h
0 commit comments