diff options
author | Bernd Wachter <bwachter-mana@lart.info> | 2010-01-29 01:04:59 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-01-29 14:41:46 +0100 |
commit | 1d042e5d1cd5849e90e947949d78293289ca3530 (patch) | |
tree | 28a145195ef5b8d384c45dcf02f3b7cffb0e0496 /CMake | |
parent | 802757b90cbd494119f985e266a5202db417d3f9 (diff) | |
download | manaserv-1d042e5d1cd5849e90e947949d78293289ca3530.tar.gz manaserv-1d042e5d1cd5849e90e947949d78293289ca3530.tar.xz manaserv-1d042e5d1cd5849e90e947949d78293289ca3530.zip |
Use the module shipped with CMake 2.6 to detect Lua 5.1
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/Modules/FindLua.cmake | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/CMake/Modules/FindLua.cmake b/CMake/Modules/FindLua.cmake deleted file mode 100644 index 6a2f8e4..0000000 --- a/CMake/Modules/FindLua.cmake +++ /dev/null @@ -1,46 +0,0 @@ -# Find the Lua 5.1 includes and library -# -# LUA_INCLUDE_DIR - where to find lua.h -# LUA_LIBRARIES - List of fully qualified libraries to link against -# LUA_FOUND - Set to TRUE if found - -IF(LUA_INCLUDE_DIR AND LUA_LIBRARIES) - SET(LUA_FIND_QUIETLY TRUE) -ENDIF(LUA_INCLUDE_DIR AND LUA_LIBRARIES) - -# for Windows we rely on the environement variables -# %INCLUDE% and %LIB%; FIND_LIBRARY checks %LIB% -# automatically on Windows -IF(WIN32) - FIND_PATH(LUA_INCLUDE_DIR lua/lua.h - $ENV{INCLUDE} - ) - FIND_LIBRARY(LUA_LIBRARIES - NAMES lua - ) -ELSE() - FIND_PATH(LUA_INCLUDE_DIR lua.h ) - - FIND_LIBRARY(LUA_LIBRARIES NAMES lua ) -ENDIF() - -IF(LUA_INCLUDE_DIR AND LUA_LIBRARIES) - SET(LUA_FOUND TRUE) - INCLUDE(CheckLibraryExists) - CHECK_LIBRARY_EXISTS(${LUA_LIBRARIES} lua_close "" LUA_NEED_PREFIX) -ELSE(LUA_INCLUDE_DIR AND LUA_LIBRARIES) - SET(LUA_FOUND FALSE) -ENDIF (LUA_INCLUDE_DIR AND LUA_LIBRARIES) - -IF(LUA_FOUND) - IF (NOT LUA_FIND_QUIETLY) - MESSAGE(STATUS "Found Lua library: ${LUA_LIBRARIES}") - MESSAGE(STATUS "Found Lua headers: ${LUA_INCLUDE_DIR}") - ENDIF (NOT LUA_FIND_QUIETLY) -ELSE(LUA_FOUND) - IF(LUA_FIND_REQUIRED) - MESSAGE(FATAL_ERROR "Could NOT find Lua") - ENDIF(LUA_FIND_REQUIRED) -ENDIF(LUA_FOUND) - -MARK_AS_ADVANCED(LUA_INCLUDE_DIR LUA_LIBRARIES) |