cmake_modules/FindLua.cmake
branch0.9.21
changeset 10747 07ade56c3b4a
parent 10238 7e20804db6a2
child 12762 5134c07ce32c
equal deleted inserted replaced
10745:fab746a3597e 10747:07ade56c3b4a
    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)