misc/libphysfs/CMakeLists.txt
branchwebgl
changeset 9197 e4e366013e9a
parent 9160 fc46e75f6b72
parent 9185 115e7daa4796
child 9236 ddd675825672
--- a/misc/libphysfs/CMakeLists.txt	Sun Jun 16 00:46:11 2013 +0400
+++ b/misc/libphysfs/CMakeLists.txt	Mon Jun 17 16:56:58 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)