Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 14, 2011, 3:53:38 AM (14 years ago)
Author:
rgrieder
Message:

Merged ois_update branch (before it was renamed to mac_osx) into kicklib branch.

Location:
code/branches/kicklib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib

  • code/branches/kicklib/cmake/LibraryConfig.cmake

    r8066 r8071  
    4040# On Windows using a package causes way less problems
    4141SET(_option_msg "Set this to true to use precompiled dependecy archives")
    42 IF(WIN32)
     42IF(WIN32 OR APPLE)
    4343  OPTION(DEPENDENCY_PACKAGE_ENABLE "${_option_msg}" ON)
    44 ELSE(WIN32)
     44ELSE()
    4545  OPTION(DEPENDENCY_PACKAGE_ENABLE "${_option_msg}" FALSE)
    46 ENDIF(WIN32)
     46ENDIF()
    4747
    4848# Scripts for specific library and CMake config
    4949INCLUDE(LibraryConfigTardis)
    50 INCLUDE(LibraryConfigApple)
     50#INCLUDE(LibraryConfigOSX)
    5151
    5252IF(DEPENDENCY_PACKAGE_ENABLE)
     
    7575                   "Disable LIBRARY_USE_PACKAGE if you have none intalled.")
    7676  ELSE()
    77     INCLUDE(PackageConfigMinGW)
    78     INCLUDE(PackageConfigMSVC)
    79     INCLUDE(PackageConfig) # For both msvc and mingw
     77    IF(WIN32)
     78      INCLUDE(PackageConfigMinGW)
     79      INCLUDE(PackageConfigMSVC)
     80      INCLUDE(PackageConfig) # For both msvc and mingw
     81    ELSEIF(APPLE)
     82      INCLUDE(PackageConfigOSX)
     83    ENDIF(WIN32)
    8084  ENDIF()
    8185ENDIF(DEPENDENCY_PACKAGE_ENABLE)
     
    152156# No auto linking, so this option is useless anyway
    153157MARK_AS_ADVANCED(Boost_LIB_DIAGNOSTIC_DEFINITIONS)
     158# Complain about incompatibilities
     159IF(GCC_VERSION)
     160  COMPARE_VERSION_STRINGS("${GCC_VERSION}" "4.4.0" _compare_result)
     161  IF(NOT _compare_result LESS 0)
     162    IF(${Boost_VERSION} LESS 103700)
     163      MESSAGE(STATUS "Warning: Boost versions earlier than 1.37 may not compile with GCC 4.4 or later!")
     164    ENDIF()
     165  ENDIF()
     166ENDIF()
    154167
    155168
Note: See TracChangeset for help on using the changeset viewer.