cmake_modules/FindLua.cmake
changeset 10238 7e20804db6a2
parent 10232 93afc42147c8
child 10725 b01835e9339d
equal deleted inserted replaced
10237:282e49f9ce9d 10238:7e20804db6a2
    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.2 lua52)
    20                           PATH_SUFFIXES lua5.1 lua51)
    21 find_library(LUA_LIBRARY NAMES lua52 lua5.2 lua-5.2 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)
       
    26