cmake_modules/FindLua.cmake
author smxx
Wed, 03 Mar 2010 15:04:39 +0000
changeset 2924 908851e59958
child 2925 d088b5f813c9
permissions -rw-r--r--
Engine: * Renamed proto.inc to config.inc to receive other config values from cmake as well * Moved Lua library lookup back to CMake - hope this finally fixes all issues * Fixed training once again
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2924
908851e59958 Engine:
smxx
parents:
diff changeset
     1
# Find the Lua library
908851e59958 Engine:
smxx
parents:
diff changeset
     2
#
908851e59958 Engine:
smxx
parents:
diff changeset
     3
908851e59958 Engine:
smxx
parents:
diff changeset
     4
IF(UNIX)
908851e59958 Engine:
smxx
parents:
diff changeset
     5
  FIND_LIBRARY(LUA_LIBRARY NAMES lua5.1 lua)
908851e59958 Engine:
smxx
parents:
diff changeset
     6
ELSE(UNIX)
908851e59958 Engine:
smxx
parents:
diff changeset
     7
  IF(WIN32)
908851e59958 Engine:
smxx
parents:
diff changeset
     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.")
908851e59958 Engine:
smxx
parents:
diff changeset
     9
  else(WIN32)
908851e59958 Engine:
smxx
parents:
diff changeset
    10
  ENDIF(WIN32)
908851e59958 Engine:
smxx
parents:
diff changeset
    11
ENDIF(UNIX)