CMakeLists.txt
changeset 801 a6d25b52f2c7
parent 799 7012c0e130d0
child 802 d04103af68a5
equal deleted inserted replaced
800:ce3d59cd8430 801:a6d25b52f2c7
    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...
    27 # Fallback to older Mac OS X on PowerPC to support a wider range of systems...
    28 IF(MACOSX)
    28 IF(MACOSX)
       
    29     ADD_DEFINITIONS(-fno-common)
    29     IF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
    30     IF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
    30         ADD_DEFINITIONS(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -fno-common)
    31         ADD_DEFINITIONS(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020)
    31         SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} "-mmacosx-version-min=10.2 -framework Carbon -framework IOKit")
    32         SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -mmacosx-version-min=10.2")
    32     ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
    33     ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
       
    34     SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -framework Carbon -framework IOKit")
    33 ENDIF(MACOSX)
    35 ENDIF(MACOSX)
    34 
    36 
    35 # Add some gcc-specific command lines.
    37 # Add some gcc-specific command lines.
    36 IF(CMAKE_COMPILER_IS_GNUCC)
    38 IF(CMAKE_COMPILER_IS_GNUCC)
    37     # Always build with debug symbols...you can strip it later.
    39     # Always build with debug symbols...you can strip it later.