equal
deleted
inserted
replaced
46 |
46 |
47 if(MACOSX) |
47 if(MACOSX) |
48 # Fallback to older OS X on PowerPC to support wider range of systems... |
48 # Fallback to older OS X on PowerPC to support wider range of systems... |
49 if(CMAKE_OSX_ARCHITECTURES MATCHES ppc) |
49 if(CMAKE_OSX_ARCHITECTURES MATCHES ppc) |
50 add_definitions(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020) |
50 add_definitions(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020) |
51 set(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -mmacosx-version-min=10.2") |
51 list(APPEND OTHER_LDFLAGS "-mmacosx-version-min=10.2") |
52 endif(CMAKE_OSX_ARCHITECTURES MATCHES ppc) |
52 endif(CMAKE_OSX_ARCHITECTURES MATCHES ppc) |
53 |
53 |
54 # Need these everywhere... |
54 # Need these everywhere... |
55 add_definitions(-fno-common) |
55 add_definitions(-fno-common) |
|
56 find_library(foundation_framework NAMES Foundation) |
|
57 list(APPEND OTHER_LDFLAGS ${foundation_framework}) |
56 find_library(iokit_framework NAMES IOKit) |
58 find_library(iokit_framework NAMES IOKit) |
57 list(APPEND OTHER_LDFLAGS ${iokit_framework}) |
59 list(APPEND OTHER_LDFLAGS ${iokit_framework}) |
58 endif(MACOSX) |
60 endif(MACOSX) |
59 |
61 |
60 # Add some gcc-specific command lines. |
62 # Add some gcc-specific command lines. |