CMakeLists.txt
changeset 803 4b1e0994ab97
parent 802 d04103af68a5
child 804 45c29325e017
equal deleted inserted replaced
802:d04103af68a5 803:4b1e0994ab97
    22 
    22 
    23 INCLUDE_DIRECTORIES(.)
    23 INCLUDE_DIRECTORIES(.)
    24 #INCLUDE_DIRECTORIES(platform)
    24 #INCLUDE_DIRECTORIES(platform)
    25 #INCLUDE_DIRECTORIES(archivers)
    25 #INCLUDE_DIRECTORIES(archivers)
    26 
    26 
    27 # Fallback to older Mac OS X on PowerPC to support a wider range of systems...
       
    28 IF(MACOSX)
    27 IF(MACOSX)
    29     ADD_DEFINITIONS(-fno-common)
    28     # Fallback to older OS X on PowerPC to support wider range of systems...
    30     IF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
    29     IF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
    31         ADD_DEFINITIONS(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020)
    30         ADD_DEFINITIONS(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020)
    32         SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -mmacosx-version-min=10.2")
    31         SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -mmacosx-version-min=10.2")
    33     ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
    32     ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
       
    33 
       
    34     # Need these everywhere...
       
    35     ADD_DEFINITIONS(-fno-common)
    34     SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -framework Carbon -framework IOKit")
    36     SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -framework Carbon -framework IOKit")
    35 ENDIF(MACOSX)
    37 ENDIF(MACOSX)
    36 
    38 
    37 # Add some gcc-specific command lines.
    39 # Add some gcc-specific command lines.
    38 IF(CMAKE_COMPILER_IS_GNUCC)
    40 IF(CMAKE_COMPILER_IS_GNUCC)