Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2011, 7:43:10 PM (13 years ago)
Author:
rgrieder
Message:

Merged revisions 8098 - 8277 from kicklib to kicklib2.

Location:
code/branches/kicklib2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib2

  • code/branches/kicklib2/cmake/LibraryConfig.cmake

    r8284 r8285  
    5858  ELSEIF(MSVC90)
    5959    SET(_compiler_prefix msvc9)
    60   ELSEIF(MSVC100)
     60  ELSEIF(MSVC10)
    6161    SET(_compiler_prefix msvc10)
    6262  ENDIF()
     
    9898# Performs the search and sets the variables    #
    9999
    100 FIND_PACKAGE(OGRE     1.6    REQUIRED)
    101 #FIND_PACKAGE(ENet     1.1    REQUIRED)
     100#FIND_PACKAGE(ENet     1.2    REQUIRED)
     101FIND_PACKAGE(CEGUI    0.6    REQUIRED)
    102102FIND_PACKAGE(Lua5.1          REQUIRED)
    103103FIND_PACKAGE(Ogg             REQUIRED)
     
    105105FIND_PACKAGE(ALUT            REQUIRED)
    106106FIND_PACKAGE(ZLIB            REQUIRED)
    107 IF(POCO_REQUIRED)
    108   FIND_PACKAGE(POCO          REQUIRED)
    109   # Always link against POCO too because of threading
    110   SET(OGRE_LIBRARY ${OGRE_LIBRARY} ${POCO_LIBRARY})
    111 ENDIF()
     107
    112108IF(WIN32)
    113109  FIND_PACKAGE(DbgHelp)
     
    115111ENDIF()
    116112
    117 ##### CEGUI #####
    118 # We make use of the CEGUI script module called CEGUILua.
    119 # However there is a small issue with that: Both CEGUILua and Orxonox use
    120 # Lua library functions on the same objects. And it turns out that in this case
    121 # the linked library must be EXACTLY the same.
    122 # Since Lua v5.1 has been out for a long while, this does not seem to be a
    123 # problem anymore, at least as long as Lua 5.2 is not released.
    124 FIND_PACKAGE(CEGUI 0.6 REQUIRED)
    125113
    126114##### OpenAL #####
     
    147135##### Boost #####
    148136# Expand the next statement if newer boost versions are released
    149 SET(Boost_ADDITIONAL_VERSIONS 1.37 1.37.0 1.38 1.38.0 1.39 1.39.0 1.40 1.40.0
    150                               1.41 1.41.0 1.42 1.42.0 1.43 1.43.0 1.44 1.44.0
    151                               1.45 1.45.0 1.46 1.46.0 1.46.1)
    152 IF( NOT TARDIS )
    153   FIND_PACKAGE(Boost 1.35 REQUIRED thread filesystem system date_time)
     137SET(Boost_ADDITIONAL_VERSIONS 1.40 1.40.0 1.41 1.41.0 1.42 1.42.0 1.43 1.43.0
     138                              1.44 1.44.0 1.45 1.45.0 1.46 1.46.0 1.46.1)
     139IF(NOT TARDIS)
     140  FIND_PACKAGE(Boost 1.40 REQUIRED thread filesystem system date_time)
    154141ENDIF()
    155142# No auto linking, so this option is useless anyway
    156143MARK_AS_ADVANCED(Boost_LIB_DIAGNOSTIC_DEFINITIONS)
    157 # Complain about incompatibilities
    158 IF(GCC_VERSION)
    159   COMPARE_VERSION_STRINGS("${GCC_VERSION}" "4.4.0" _compare_result)
    160   IF(NOT _compare_result LESS 0)
    161     IF(${Boost_VERSION} LESS 103700)
    162       MESSAGE(STATUS "Warning: Boost versions earlier than 1.37 may not compile with GCC 4.4 or later!")
    163     ENDIF()
    164   ENDIF()
     144
     145##### OGRE #####
     146FIND_PACKAGE(OGRE 1.6 REQUIRED)
     147# For Ogre >= 1.7, we might need a threading library
     148# Variables are either defined by dependency package config or by FindOGRE
     149IF(OGRE_NEEDS_POCO)
     150  FIND_PACKAGE(POCO REQUIRED)
     151  # Always link against POCO too because of threading
     152  SET(OGRE_LIBRARY ${OGRE_LIBRARY} ${POCO_LIBRARY})
     153ELSEIF(OGRE_NEEDS_BOOST)
     154  # Always link against boost too because of threading
     155  SET(OGRE_LIBRARY ${OGRE_LIBRARY} ${Boost_THREAD_LIBRARY})
    165156ENDIF()
    166157
Note: See TracChangeset for help on using the changeset viewer.