churchyard / rpms / smoldyn

Forked from rpms/smoldyn 2 years ago
Clone

Blame smoldyn-freeglut.patch

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