osx, link also foundation to physfs
authorkoda
Tue, 11 Jun 2013 02:39:45 +0200
changeset 9185 115e7daa4796
parent 9183 4cd7c7aafea7
child 9186 d87e2c7838fa
osx, link also foundation to physfs
misc/libphysfs/CMakeLists.txt
--- a/misc/libphysfs/CMakeLists.txt	Tue Jun 11 00:01:32 2013 +0200
+++ b/misc/libphysfs/CMakeLists.txt	Tue Jun 11 02:39:45 2013 +0200
@@ -48,11 +48,13 @@
     # Fallback to older OS X on PowerPC to support wider range of systems...
     if(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
         add_definitions(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020)
-        set(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -mmacosx-version-min=10.2")
+        list(APPEND OTHER_LDFLAGS "-mmacosx-version-min=10.2")
     endif(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
 
     # Need these everywhere...
     add_definitions(-fno-common)
+    find_library(foundation_framework NAMES Foundation)
+    list(APPEND OTHER_LDFLAGS ${foundation_framework})
     find_library(iokit_framework NAMES IOKit)
     list(APPEND OTHER_LDFLAGS ${iokit_framework})
 endif(MACOSX)