equal
deleted
inserted
replaced
5 SET(LUA_DEFAULT lua.dll) |
5 SET(LUA_DEFAULT lua.dll) |
6 ELSE(WIN32) |
6 ELSE(WIN32) |
7 IF(APPLE) |
7 IF(APPLE) |
8 SET(LUA_DEFAULT lua) |
8 SET(LUA_DEFAULT lua) |
9 ELSE(APPLE) |
9 ELSE(APPLE) |
10 #locate the system's lua library |
10 if (ANDROID) |
11 FIND_LIBRARY(LUA_DEFAULT NAMES lua51 lua5.1 lua-5.1 lua PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib) |
11 SET(LUA_DEFAULT "liblua5.1.so") |
12 IF(${LUA_DEFAULT} MATCHES "LUA_DEFAULT-NOTFOUND") |
12 else (ANDROID) |
13 #UNSET(LUA_DEFAULT) |
13 #locate the system's lua library |
14 MESSAGE(FATAL_ERROR "Couldn't find Lua 5.1 library!") |
14 FIND_LIBRARY(LUA_DEFAULT NAMES lua51 lua5.1 lua-5.1 lua PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib) |
15 ENDIF() |
15 IF(${LUA_DEFAULT} MATCHES "LUA_DEFAULT-NOTFOUND") |
16 #remove the path (fpc doesn't like it - why?) |
16 #UNSET(LUA_DEFAULT) |
17 GET_FILENAME_COMPONENT(LUA_DEFAULT ${LUA_DEFAULT} NAME) |
17 MESSAGE(FATAL_ERROR "Couldn't find Lua 5.1 library!") |
|
18 ENDIF() |
|
19 #remove the path (fpc doesn't like it - why?) |
|
20 GET_FILENAME_COMPONENT(LUA_DEFAULT ${LUA_DEFAULT} NAME) |
|
21 ENDIF(ANDROID) |
18 ENDIF(APPLE) |
22 ENDIF(APPLE) |
19 ENDIF(WIN32) |
23 ENDIF(WIN32) |
20 SET(LUA_LIBRARY ${LUA_DEFAULT} CACHE STRING "Lua library to link to; file name without path only!") |
24 SET(LUA_LIBRARY ${LUA_DEFAULT} CACHE STRING "Lua library to link to; file name without path only!") |
21 #UNSET(LUA_DEFAULT) |
25 #UNSET(LUA_DEFAULT) |