* Fix for compiling with cmake on OS X. Hopefully this goes ok for other platforms...
authorMatt Ebb <matt@mke3.net>
Fri, 3 Jul 2009 09:23:12 +0000 (09:23 +0000)
committerMatt Ebb <matt@mke3.net>
Fri, 3 Jul 2009 09:23:12 +0000 (09:23 +0000)
CMakeLists.txt

index 714ec4095af9639a337deec68db1f305ae049bb5..a4796c2eee90555a4c9de5d372a0e1cebab530ca 100644 (file)
@@ -87,7 +87,7 @@ INCLUDE(CMake/macros.cmake)
 #-----------------------------------------------------------------------------
 #Platform specifics
 
-IF(UNIX)
+IF(UNIX AND NOT APPLE)
   IF(WITH_OPENAL)
     FIND_PACKAGE(OpenAL)
     IF(OPENAL_FOUND)
@@ -177,7 +177,7 @@ IF(UNIX)
   SET(C_WARNINGS "-Wall -Wno-char-subscripts -Wpointer-arith -Wcast-align -Wnested-externs -Wdeclaration-after-statement")
 
   INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR} ${PNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} )
-ENDIF(UNIX)
+ENDIF(UNIX AND NOT APPLE)
 
 IF(WIN32)