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

(cherry picked from commit a0b77bba49)

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1798 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2017-04-26 08:45:32 +00:00
parent 585d7bfdee
commit 474975bc41

View File

@ -70,8 +70,12 @@ SET(FREEGLUT_HEADERS
include/GL/freeglut.h include/GL/freeglut.h
include/GL/freeglut_ext.h include/GL/freeglut_ext.h
include/GL/freeglut_std.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 SET(FREEGLUT_SRCS
${FREEGLUT_HEADERS} ${FREEGLUT_HEADERS}
src/fg_callbacks.c src/fg_callbacks.c