CMake: include/GL/glut.h should only be installed when FREEGLUT_REPLACE_GLUT is ON
authorDiederick Niehorster <dcnieho@gmail.com>
Wed, 26 Apr 2017 08:45:32 +0000 (08:45 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Wed, 26 Apr 2017 08:45:32 +0000 (08:45 +0000)
(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

CMakeLists.txt

index 6ec15b4..190964f 100644 (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