cmake_modules/FindLua.cmake
changeset 7233 225179f64fd8
parent 7050 91199321e916
child 8072 c803d89ae74d
equal deleted inserted replaced
7229:c34516ec0f27 7233:225179f64fd8
    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)