From a0b77bba49573dab3564ce22a503024098664f04 Mon Sep 17 00:00:00 2001 From: "Diederick C. Niehorster" Date: Sat, 22 Apr 2017 23:00:22 +0200 Subject: [PATCH] CMake: include/GL/glut.h should only be installed when FREEGLUT_REPLACE_GLUT is ON --- freeglut/freeglut/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/freeglut/freeglut/CMakeLists.txt b/freeglut/freeglut/CMakeLists.txt index 6ec15b4..190964f 100644 --- a/freeglut/freeglut/CMakeLists.txt +++ b/freeglut/freeglut/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