Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2326 for code/branches


Ignore:
Timestamp:
Dec 3, 2008, 4:30:12 PM (16 years ago)
Author:
adrfried
Message:

fix tolua compat handling

Location:
code/branches/buildsystem
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem/TODO_buildsystem

    r2242 r2326  
    1 - Detect lua version and modify all.lua accordingly (do not include compat-5.1 for lua 5.0)
    21- Detect ceguilua version other than with the variable from the pkg config file. It might not exist everywhere.
  • code/branches/buildsystem/src/tolua/CMakeLists.txt

    r2275 r2326  
    1818TARGET_LINK_LIBRARIES(toluaexe_orxonox tolualib_orxonox ${LUA_LIBRARIES})
    1919
    20 # TODO: determine lua version and set appropriate pack file
    21 SET(TOLUA_ALL_PACK all-5.1.lua)
     20# Determine Lua version and set appropriate pack file
     21IF(LUA50_FOUND)
     22  SET(TOLUA_ALL_PACK all-5.0.lua)
     23ELSE(LUA50_FOUND)
     24  SET(TOLUA_ALL_PACK all-5.1.lua)
     25ENDIF(LUA50_FOUND)
     26
    2227SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}" PARENT_SCOPE)
    2328SET(TOLUA_PARSER_DEPENDENCIES
Note: See TracChangeset for help on using the changeset viewer.