From: Diederick Niehorster Date: Wed, 26 Apr 2017 08:45:32 +0000 (+0000) Subject: CMake: include/GL/glut.h should only be installed when FREEGLUT_REPLACE_GLUT is ON X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=freeglut;a=commitdiff_plain;h=14a95d68b97af3728762c621e3fd6f952eab9478 CMake: include/GL/glut.h should only be installed when FREEGLUT_REPLACE_GLUT is ON (cherry picked from commit a0b77bba49573dab3564ce22a503024098664f04) git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1798 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ec15b4..190964f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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