Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 1, 2009, 5:44:49 PM (15 years ago)
Author:
rgrieder
Message:

Fixes:

  • Improved OpenAL include hack (no, it's not hackier now, I really mean 'improved')
  • Network and Audio shared linking for MinGW (using alut and openal sdk binaries now)
  • TCL and ZLIB find scripts may have found the wrong library when using dependency packages (happened with MATLAB libz.dll because of the PATH variable)
  • Disabled auto boost auto linking (also removes ugly hack in LibraryConfig.cmake)

Updates:

  • OpenAL 1.1 for MinGW
  • Ogre 1.4.9 for MinGW
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/cmake/LibraryConfig.cmake

    r2628 r2630  
    103103##### OpenAL #####
    104104FIND_PACKAGE(OpenAL REQUIRED)
    105 # ALUT's headers include openal headers, but like <AL/al.h>, not <al.h>
    106 # Unfortunately this is not the case on all systems, so FindOpenAL.cmake
    107 # specifies the directory/AL, which now causes problems with ALUT.
    108 IF(DEFINED OPENAL_FOUND_FIRST_TIME)
    109   SET(OPENAL_FOUND_FIRST_TIME FALSE CACHE INTERNAL "")
    110 ELSE()
    111   SET(OPENAL_FOUND_FIRST_TIME TRUE CACHE INTERNAL "")
    112   STRING(REGEX REPLACE "^(.*)/AL$" "\\1" _openal_dir_2 ${OPENAL_INCLUDE_DIR})
    113   IF(_openal_dir_2)
    114     SET(OPENAL_INCLUDE_DIR ${OPENAL_INCLUDE_DIR} ${_openal_dir_2} CACHE STRING "" FORCE)
    115   ENDIF()
     105# Also use parent include dir (without AL/) for ALUT
     106IF(OPENAL_INCLUDE_DIR MATCHES "/AL$")
     107  GET_FILENAME_COMPONENT(ALT_OPENAL_INCLUDE_DIR ${OPENAL_INCLUDE_DIR} PATH)
    116108ENDIF()
     109SET(OPENAL_INCLUDE_DIRS ${OPENAL_INCLUDE_DIR} ${ALT_OPENAL_INCLUDE_DIR})
    117110# Notfiy user
    118111FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenAL DEFAULT_MSG OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
     
    132125# Expand the next statement if newer boost versions than 1.36.1 are released
    133126SET(Boost_ADDITIONAL_VERSIONS 1.37 1.37.0)
    134 FIND_PACKAGE(Boost 1.34 REQUIRED thread filesystem)
    135 # With MSVC, automatic linking is performed for boost. So wee need to tell
    136 # the linker where to find them. Also note that when running FindBoost for the
    137 # first time, it will set ${Boost_LIBRARIES} to "" but afterwards to the libs.
    138 IF (MSVC)
    139   # Little bit hacky, but Boost_LIBRARY_DIRS doesn't get set right when having
    140   # debug and optimized libraries.
    141   GET_FILENAME_COMPONENT(BOOST_LINK_DIR "${Boost_THREAD_LIBRARY_RELEASE}" PATH)
    142   LINK_DIRECTORIES(${BOOST_LINK_DIR})
    143 ENDIF (MSVC)
    144 
     127# MSVC seems to be the only compiler requiring system and date_time
     128IF(MSVC)
     129  FIND_PACKAGE(Boost 1.34 REQUIRED thread filesystem date_time system)
     130ELSE(MSVC)
     131  FIND_PACKAGE(Boost 1.34 REQUIRED thread filesystem)
     132ENDIF(MSVC)
    145133
    146134####### Static/Dynamic linking options ##########
Note: See TracChangeset for help on using the changeset viewer.