equal
deleted
inserted
replaced
18 ELSE(APPLE) |
18 ELSE(APPLE) |
19 #locate the system's lua library |
19 #locate the system's lua library |
20 FIND_LIBRARY(LUA_DEFAULT NAMES lua51 lua5.1 lua-5.1 lua PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib) |
20 FIND_LIBRARY(LUA_DEFAULT NAMES lua51 lua5.1 lua-5.1 lua PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib) |
21 IF(${LUA_DEFAULT} MATCHES "LUA_DEFAULT-NOTFOUND") |
21 IF(${LUA_DEFAULT} MATCHES "LUA_DEFAULT-NOTFOUND") |
22 set(LUA_DEFAULT lua) |
22 set(LUA_DEFAULT lua) |
|
23 ELSE() |
23 set(LUA_FOUND true) |
24 set(LUA_FOUND true) |
24 ELSE() |
|
25 message(STATUS "LibLua 5.1 found at ${LUA_DEFAULT}") |
25 message(STATUS "LibLua 5.1 found at ${LUA_DEFAULT}") |
26 #remove the path (fpc doesn't like it - why?) |
26 #remove the path (fpc doesn't like it - why?) |
27 GET_FILENAME_COMPONENT(LUA_DEFAULT ${LUA_DEFAULT} NAME) |
27 GET_FILENAME_COMPONENT(LUA_DEFAULT ${LUA_DEFAULT} NAME) |
28 ENDIF() |
28 ENDIF() |
29 ENDIF(APPLE) |
29 ENDIF(APPLE) |