Skip to content

Commit

Permalink
build: Only conditionally mention the GL headers in external.
Browse files Browse the repository at this point in the history
They might be dropped form distro source packages since they're duplicates.
  • Loading branch information
rpavlik committed Oct 23, 2019
1 parent 4173b42 commit 56e1a44
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions external/include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
set( INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" )

set( GL_HEADERS
${INCLUDE_DIR}/GL/gl_format.h
${INCLUDE_DIR}/GL/glext.h
${INCLUDE_DIR}/GL/wglext.h )
${INCLUDE_DIR}/GL/gl_format.h )

# These can be dropped by some subsetted source distributions since
# they ought to exist, if required, in your OpenGL SDK package.
foreach(FN ${INCLUDE_DIR}/GL/glext.h ${INCLUDE_DIR}/GL/wglext.h)
if(EXISTS "${FN}")
list(APPEND GL_HEADERS "${FN}")
endif()
endforeach()

set( UTILS_HEADERS
${INCLUDE_DIR}/utils/algebra.h
${INCLUDE_DIR}/utils/sysinfo.h
Expand Down

0 comments on commit 56e1a44

Please sign in to comment.