--- a/cmake_modules/FindLua.cmake Tue Jun 12 21:42:22 2012 -0400
+++ b/cmake_modules/FindLua.cmake Wed Jun 13 11:18:30 2012 -0400
@@ -20,8 +20,8 @@
FIND_LIBRARY(LUA_DEFAULT NAMES lua51 lua5.1 lua-5.1 lua PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib)
IF(${LUA_DEFAULT} MATCHES "LUA_DEFAULT-NOTFOUND")
set(LUA_DEFAULT lua)
+ ELSE()
set(LUA_FOUND true)
- ELSE()
message(STATUS "LibLua 5.1 found at ${LUA_DEFAULT}")
#remove the path (fpc doesn't like it - why?)
GET_FILENAME_COMPONENT(LUA_DEFAULT ${LUA_DEFAULT} NAME)