cmake_modules/FindLua.cmake
changeset 10768 e5d6a6a25b7c
parent 10725 b01835e9339d
child 12762 5134c07ce32c
equal deleted inserted replaced
10766:6db59a502434 10768:e5d6a6a25b7c
    15 
    15 
    16 include(FindPackageHandleStandardArgs)
    16 include(FindPackageHandleStandardArgs)
    17 
    17 
    18 find_path(LUA_INCLUDE_DIR lua.h
    18 find_path(LUA_INCLUDE_DIR lua.h
    19                           PATHS /usr/include /usr/local/include /usr/pkg/include
    19                           PATHS /usr/include /usr/local/include /usr/pkg/include
    20                           PATH_SUFFIXES lua5.1 lua51)
    20                           PATH_SUFFIXES lua5.1 lua51 lua-5.1)
    21 find_library(LUA_LIBRARY NAMES lua51 lua5.1 lua-5.1 lua
    21 find_library(LUA_LIBRARY NAMES lua51 lua5.1 lua-5.1 lua
    22                          PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib)
    22                          PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib)
    23 
    23 
    24 find_package_handle_standard_args(Lua DEFAULT_MSG LUA_LIBRARY LUA_INCLUDE_DIR)
    24 find_package_handle_standard_args(Lua DEFAULT_MSG LUA_LIBRARY LUA_INCLUDE_DIR)
    25 mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARY)
    25 mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARY)