cmake_modules/FindLua.cmake
changeset 2925 d088b5f813c9
parent 2924 908851e59958
child 3014 2b4116a8bdb0
child 3067 330e60f5dde8
equal deleted inserted replaced
2924:908851e59958 2925:d088b5f813c9
     1 # Find the Lua library
     1 # Find the Lua library
     2 #
     2 #
     3 
     3 
     4 IF(UNIX)
     4 IF(NOT LUA_LIBRARY)
     5   FIND_LIBRARY(LUA_LIBRARY NAMES lua5.1 lua)
     5 	IF(WIN32)
     6 ELSE(UNIX)
     6 		set(LUA_DEFAULT lua.dll)
     7   IF(WIN32)
     7 	ELSE(WIN32)
     8     SET(LUA_LIBRARY lua.dll CACHE FILEPATH "Path to the lua library to be used. This should be set to 'lua.dll' or 'lua' under Win32/Apple to use the bundled copy.")
     8 		IF(APPLE)
     9   else(WIN32)
     9 			set(LUA_DEFAULT lua)
    10   ENDIF(WIN32)
    10 		ELSE(APPLE)
    11 ENDIF(UNIX)
    11 			set(LUA_DEFAULT lua5.1.so)
       
    12 		ENDIF(APPLE)
       
    13 	ENDIF(WIN32)
       
    14 	SET(LUA_LIBRARY ${LUA_DEFAULT} CACHE STRING "Lua library to link to; file name without path only!")
       
    15 ENDIF(NOT LUA_LIBRARY)