CMake: include/GL/glut.h should only be installed when FREEGLUT_REPLACE_GLUT is ON

This commit is contained in:
Diederick C. Niehorster 2017-04-22 23:00:22 +02:00
parent 8e369de416
commit a0b77bba49

View File

@ -70,8 +70,12 @@ SET(FREEGLUT_HEADERS
include/GL/freeglut.h
include/GL/freeglut_ext.h
include/GL/freeglut_std.h
include/GL/glut.h
)
IF(FREEGLUT_REPLACE_GLUT)
LIST(APPEND FREEGLUT_SRCS
include/GL/glut.h
)
ENDIF()
SET(FREEGLUT_SRCS
${FREEGLUT_HEADERS}
src/fg_callbacks.c