Skip to content

Commit 58264bd

Browse files
committed
build: Only conditionally mention the GL headers in external.
They might be dropped form distro source packages since they're duplicates.
1 parent 0051a4f commit 58264bd

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

external/include/CMakeLists.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
set( INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" )
33

44
set( GL_HEADERS
5-
${INCLUDE_DIR}/GL/gl_format.h
6-
${INCLUDE_DIR}/GL/glext.h
7-
${INCLUDE_DIR}/GL/wglext.h )
5+
${INCLUDE_DIR}/GL/gl_format.h )
6+
7+
# 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+
815
set( UTILS_HEADERS
916
${INCLUDE_DIR}/utils/algebra.h
1017
${INCLUDE_DIR}/utils/sysinfo.h

0 commit comments

Comments
 (0)