CMakeLists.txt
branchtrunk
changeset 174 0eb9e160ff7f
parent 171 4bf769d41b01
child 225 b43efdf651ed
--- a/CMakeLists.txt	Tue Apr 22 00:17:59 2008 -0400
+++ b/CMakeLists.txt	Tue Apr 22 00:26:13 2008 -0400
@@ -13,10 +13,11 @@
     INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
     ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)
     IF(APPLE)
-        ADD_DEFINITIONS(-I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers)
         FIND_LIBRARY(OPENGL_LIBRARY OpenGL)
         MARK_AS_ADVANCED(OPENGL_LIBRARY)
         SET(EXTRA_LIBS ${OPENGL_LIBRARY})
+    ELSE(APPLE)
+        SET(EXTRA_LIBS GL)
     ENDIF(APPLE)
 ENDIF(SDL_FOUND)