churchyard / rpms / smoldyn

Forked from rpms/smoldyn 2 years ago
Clone
Blob Blame History Raw
--- CMakeLists.txt~	2019-09-19 11:56:56.000000000 -0500
+++ CMakeLists.txt	2019-09-19 12:00:30.716178022 -0500
@@ -270,20 +270,20 @@
 		#find_library(GLUT_LIBRARIES NAMES libglut)
 	endif()
 
-	if(GLUT_FOUND)
-		set(GLUT_FOUND TRUE)
-		message(STATUS "Glut found: '${GLUT_INCLUDE_DIR}', '${GLUT_LIBRARIES}'")
-	elseif(GLUT_INCLUDE_DIR AND GLUT_LIBRARIES)
-		set(GLUT_FOUND TRUE)
-		message(STATUS "Glut found: '${GLUT_INCLUDE_DIR}', '${GLUT_LIBRARIES}'")
-	else()
-		set(GLUT_FOUND FALSE)
-		message(FATAL_ERROR "Glut not found.  Building without OpenGL is possible.")
-	endif()
+#	if(GLUT_FOUND)
+#		set(GLUT_FOUND TRUE)
+#		message(STATUS "Glut found: '${GLUT_INCLUDE_DIR}', '${GLUT_LIBRARIES}'")
+#	elseif(GLUT_INCLUDE_DIR AND GLUT_LIBRARIES)
+#		set(GLUT_FOUND TRUE)
+#		message(STATUS "Glut found: '${GLUT_INCLUDE_DIR}', '${GLUT_LIBRARIES}'")
+#	else()
+#		set(GLUT_FOUND FALSE)
+#		message(FATAL_ERROR "Glut not found.  Building without OpenGL is possible.")
+#	endif()
 
 	set(HAVE_OPENGL TRUE)
-	include_directories(${GLUT_INCLUDE_DIR})
-	list(APPEND DEP_LIBS ${GLUT_LIBRARIES})
+	include_directories(/usr/include/GL)
+	list(APPEND DEP_LIBS -lglut)
 endif()