From e5e7fa9b1ee64a1f6d3688930ce162668093a3c1 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 5 Aug 2016 17:14:55 +0000 Subject: 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 --- CMake/options.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMake/options.cmake b/CMake/options.cmake index 11c92823b..013978002 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -149,6 +149,9 @@ if(OPTION_USE_GL) set(OPENGL_FOUND FALSE) else() include(FindOpenGL) + if(APPLE) + set(HAVE_GL_GLU_H ${HAVE_OPENGL_GLU_H}) + endif(APPLE) endif(OPTION_APPLE_X11) endif(OPTION_USE_GL) -- cgit v1.2.3