Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1076 for code/trunk/cmake


Ignore:
Timestamp:
Apr 16, 2008, 10:05:37 AM (17 years ago)
Author:
rgrieder
Message:

two hours of Fuk is very 'enlighting', the whole thing works now.\ncmake. will now build lua, then compile with tolua and finally create the Makefiles for orxonox.\n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/FindLua.cmake

    r1037 r1076  
    1111# Redistribution and use is allowed according to the terms of the BSD license.
    1212
     13MESSAGE(STATUS "lua libs in cache: ${Lua_LIBRARIES}")
    1314IF (Lua_LIBRARIES AND Lua_INCLUDE_DIR)
    1415    SET(Lua_FIND_QUIETLY TRUE) # Already in cache, be silent
     
    2627
    2728IF (NOT Lua_INCLUDE_DIR)
    28 FIND_PATH(Lua_INCLUDE_DIR lua.h
     29 FIND_PATH(Lua_INCLUDE_DIR lua.h
    2930        /usr/include/lua50
    3031        /usr/local/include/lua50
     
    3334
    3435IF (NOT Lua_LIBRARIES)
    35 FIND_LIBRARY(Lua_LIBRARIES lua50
     36 FIND_LIBRARY(Lua_LIBRARIES lua50
    3637        /usr/lib
    3738        /usr/local/lib)
    3839
    39 FIND_LIBRARY(Lua_LIBRARY lualib50
     40 FIND_LIBRARY(Lua_LIBRARY lualib50
    4041        /usr/lib
    4142        /usr/local/lib)
    4243
    43 SET(Lua_LIBRARIES ${Lua_LIBRARIES} ${Lua_LIBRARY})
    44 
     44#SET(Lua_LIBRARIES ${Lua_LIBRARIES} ${Lua_LIBRARY})
    4545ENDIF (NOT Lua_LIBRARIES)
    4646
     47#especially for tardis
    4748IF (NOT Lua_LIBRARIES)
    48 FIND_LIBRARY(Lua_LIBRARIES lua
     49 FIND_LIBRARY(Lua_LIBRARIES lua
    4950        /usr/pack/lua-5.0.3-sd/i686-debian-linux3.1/lib)
    5051
    51 FIND_LIBRARY(Lua_LIBRARY lualib
     52 FIND_LIBRARY(Lua_LIBRARY lualib
    5253        /usr/pack/lua-5.0.3-sd/i686-debian-linux3.1/lib)
    5354
    54 SET(Lua_LIBRARIES ${Lua_LIBRARIES} ${Lua_LIBRARY})
    55 
     55#SET(Lua_LIBRARIES ${Lua_LIBRARIES} ${Lua_LIBRARY})
    5656ENDIF (NOT Lua_LIBRARIES)
    5757
     
    6262IF (Lua_FOUND)
    6363    MESSAGE(STATUS "Found Lua: ${Lua_LIBRARIES}")
     64    MESSAGE(STATUS "Found Lua: ${Lua_LIBRARY}")
    6465ELSE (Lua_FOUND)
    6566    IF (Lua_FIND_REQUIRED)
Note: See TracChangeset for help on using the changeset viewer.