Fix CMake building under Apple platform that used to set HAVE_GL_GLU_H to 0

On the Mac OS platform, file glu.h is not in a directory called GL.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2016-08-05 17:14:55 +00:00
parent fe0c247dbb
commit e5e7fa9b1e

View File

@ -149,6 +149,9 @@ if(OPTION_USE_GL)
set(OPENGL_FOUND FALSE) set(OPENGL_FOUND FALSE)
else() else()
include(FindOpenGL) include(FindOpenGL)
if(APPLE)
set(HAVE_GL_GLU_H ${HAVE_OPENGL_GLU_H})
endif(APPLE)
endif(OPTION_APPLE_X11) endif(OPTION_APPLE_X11)
endif(OPTION_USE_GL) endif(OPTION_USE_GL)