General:
authorsmxx
Sat, 13 Feb 2010 12:40:40 +0000
changeset 2804 31c6c36c5d34
parent 2803 1f446fc5c8ec
child 2805 36a8cebb91e8
General: * Removed FindLua51 cmake module as fpc does it's own lookup anyway
cmake_modules/FindLua51.cmake
hedgewars/CMakeLists.txt
--- a/cmake_modules/FindLua51.cmake	Sat Feb 13 01:56:35 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-# Find the Lua 5.1 includes and library
-#
-# LUA51_INCLUDE_DIR - where to find lua.h
-# LUA51_LIBRARIES - List of fully qualified libraries to link against
-# LUA51_FOUND - Set to TRUE if found
-
-# Copyright (c) 2007, Pau Garcia i Quiles, <pgquiles@elpauer.org>
-#
-# Redistribution and use is allowed according to the terms of the BSD license.
-# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-
-IF(LUA51_INCLUDE_DIR AND LUA51_LIBRARIES)
-    SET(LUA51_FIND_QUIETLY TRUE)
-ENDIF(LUA51_INCLUDE_DIR AND LUA51_LIBRARIES)
-
-FIND_PATH(LUA51_INCLUDE_DIR lua5.1/lua.h)
-
-FIND_LIBRARY(LUA51_LIBRARIES NAMES lua5.1)
-
-IF(LUA51_INCLUDE_DIR AND LUA51_LIBRARIES)
-   SET(LUA51_FOUND TRUE)
-   INCLUDE(CheckLibraryExists)
-   CHECK_LIBRARY_EXISTS(${LUA51_LIBRARIES} lua_close "" LUA51_NEED_PREFIX)
-ELSE(LUA51_INCLUDE_DIR AND LUA51_LIBRARIES)
-   SET(LUA51_FOUND FALSE)
-   MESSAGE("D'oh")
-ENDIF (LUA51_INCLUDE_DIR AND LUA51_LIBRARIES)
-
-IF(LUA51_FOUND)
-  IF (NOT LUA51_FIND_QUIETLY)
-    MESSAGE(STATUS "Found Lua 5.1 library: ${LUA51_LIBRARIES}")
-    MESSAGE(STATUS "Found Lua 5.1 headers: ${LUA51_INCLUDE_DIR}")
-  ENDIF (NOT LUA51_FIND_QUIETLY)
-ELSE(LUA51_FOUND)
-  IF(LUA51_FIND_REQUIRED)
-    MESSAGE(FATAL_ERROR "Could NOT find Lua 5.1")
-  ENDIF(LUA51_FIND_REQUIRED)
-ENDIF(LUA51_FOUND)
-
-MARK_AS_ADVANCED(LUA51_INCLUDE_DIR LUA51_LIBRARIES)
--- a/hedgewars/CMakeLists.txt	Sat Feb 13 01:56:35 2010 +0000
+++ b/hedgewars/CMakeLists.txt	Sat Feb 13 12:40:40 2010 +0000
@@ -5,8 +5,6 @@
 find_package(SDL_net)
 find_package(SDL_ttf)
 find_package(SDL_mixer)
-#TODO: exclude for iphone only?
-find_package(Lua51)
 
 #find which version of SDL_image and SDL_mixer we have (for IMG_Init and Mix_Init)
 #if the headers are not installed, the newer apis won't be activated