Changeset 1076 for code/trunk/cmake
- Timestamp:
- Apr 16, 2008, 10:05:37 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/FindLua.cmake
r1037 r1076 11 11 # Redistribution and use is allowed according to the terms of the BSD license. 12 12 13 MESSAGE(STATUS "lua libs in cache: ${Lua_LIBRARIES}") 13 14 IF (Lua_LIBRARIES AND Lua_INCLUDE_DIR) 14 15 SET(Lua_FIND_QUIETLY TRUE) # Already in cache, be silent … … 26 27 27 28 IF (NOT Lua_INCLUDE_DIR) 28 FIND_PATH(Lua_INCLUDE_DIR lua.h29 FIND_PATH(Lua_INCLUDE_DIR lua.h 29 30 /usr/include/lua50 30 31 /usr/local/include/lua50 … … 33 34 34 35 IF (NOT Lua_LIBRARIES) 35 FIND_LIBRARY(Lua_LIBRARIES lua5036 FIND_LIBRARY(Lua_LIBRARIES lua50 36 37 /usr/lib 37 38 /usr/local/lib) 38 39 39 FIND_LIBRARY(Lua_LIBRARY lualib5040 FIND_LIBRARY(Lua_LIBRARY lualib50 40 41 /usr/lib 41 42 /usr/local/lib) 42 43 43 SET(Lua_LIBRARIES ${Lua_LIBRARIES} ${Lua_LIBRARY}) 44 44 #SET(Lua_LIBRARIES ${Lua_LIBRARIES} ${Lua_LIBRARY}) 45 45 ENDIF (NOT Lua_LIBRARIES) 46 46 47 #especially for tardis 47 48 IF (NOT Lua_LIBRARIES) 48 FIND_LIBRARY(Lua_LIBRARIES lua49 FIND_LIBRARY(Lua_LIBRARIES lua 49 50 /usr/pack/lua-5.0.3-sd/i686-debian-linux3.1/lib) 50 51 51 FIND_LIBRARY(Lua_LIBRARY lualib52 FIND_LIBRARY(Lua_LIBRARY lualib 52 53 /usr/pack/lua-5.0.3-sd/i686-debian-linux3.1/lib) 53 54 54 SET(Lua_LIBRARIES ${Lua_LIBRARIES} ${Lua_LIBRARY}) 55 55 #SET(Lua_LIBRARIES ${Lua_LIBRARIES} ${Lua_LIBRARY}) 56 56 ENDIF (NOT Lua_LIBRARIES) 57 57 … … 62 62 IF (Lua_FOUND) 63 63 MESSAGE(STATUS "Found Lua: ${Lua_LIBRARIES}") 64 MESSAGE(STATUS "Found Lua: ${Lua_LIBRARY}") 64 65 ELSE (Lua_FOUND) 65 66 IF (Lua_FIND_REQUIRED)
Note: See TracChangeset
for help on using the changeset viewer.