889ec31
--- CMakeLists.txt~	2019-09-26 14:18:04.000000000 -0500
889ec31
+++ CMakeLists.txt	2019-09-26 14:18:34.476407791 -0500
889ec31
@@ -581,9 +581,9 @@
889ec31
 		message(SEND_ERROR "You have to enable OpenGL if you plan to use GLUT.")
889ec31
 	endif(NOT MGL_HAVE_OPENGL)
889ec31
 	include(FindGLUT)
889ec31
-	if(NOT GLUT_FOUND)
889ec31
-		message(SEND_ERROR "Couldn't find GLUT library.")
889ec31
-	endif(NOT GLUT_FOUND)
889ec31
+#	if(NOT GLUT_FOUND)
889ec31
+#		message(SEND_ERROR "Couldn't find GLUT library.")
889ec31
+#	endif(NOT GLUT_FOUND)
889ec31
 else(enable-glut)
889ec31
 	set(MGL_HAVE_GLUT 0)
889ec31
 endif(enable-glut)
889ec31
--- widgets/glut.cpp~	2019-07-08 13:56:57.000000000 -0500
889ec31
+++ widgets/glut.cpp	2019-09-26 14:24:21.070662407 -0500
889ec31
@@ -30,7 +30,7 @@
889ec31
 		#include "glut.h"
889ec31
 	#else
889ec31
 		#include <GL/gl.h>
889ec31
-		#include <GL/glut.h>
889ec31
+		#include <GL/freeglut.h>
889ec31
 	#endif
889ec31
 #endif
889ec31
 
889ec31
--- widgets/CMakeLists.txt~	2019-07-08 13:56:57.000000000 -0500
889ec31
+++ widgets/CMakeLists.txt	2019-09-26 14:28:13.770162047 -0500
889ec31
@@ -14,10 +14,10 @@
889ec31
 
889ec31
 if(MGL_HAVE_GLUT)
889ec31
 	mgl_add_lib(glut glut.cpp ../include/mgl2/glut.h)
889ec31
-	target_include_directories(mgl-glut SYSTEM PUBLIC ${GLUT_INCLUDE_DIR})
889ec31
-	target_include_directories(mgl-glut-static SYSTEM PUBLIC ${GLUT_INCLUDE_DIR})
889ec31
-	target_link_libraries(mgl-glut mgl ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES})
889ec31
-	target_link_libraries(mgl-glut-static mgl-static ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES})
889ec31
+	target_include_directories(mgl-glut SYSTEM PUBLIC ${FreeGLUT_INCLUDE_DIR})
889ec31
+	target_include_directories(mgl-glut-static SYSTEM PUBLIC ${FreeGLUT_INCLUDE_DIR})
889ec31
+	target_link_libraries(mgl-glut mgl ${FreeGLUT_LIBRARIES} ${OPENGL_LIBRARIES} -lglut)
889ec31
+	target_link_libraries(mgl-glut-static mgl-static ${FreeGLUT_LIBRARIES} ${OPENGL_LIBRARIES} -lglut)
889ec31
 endif(MGL_HAVE_GLUT)
889ec31
 
889ec31
 if(MGL_HAVE_WX)