diff --git a/cmake/FindLua51.cmake b/cmake/FindLua51.cmake index bfa8c5655..6c5d5826f 100644 --- a/cmake/FindLua51.cmake +++ b/cmake/FindLua51.cmake @@ -47,7 +47,7 @@ find_path(LUA_INCLUDE_DIR lua.h HINTS ENV LUA_DIR ENV LUA_INCLUDE_DIR - PATH_SUFFIXES include/lua51 include/lua5.1 include/lua-5.1 include/lua include + PATH_SUFFIXES include/lua51 include/lua5.1 include/lua-5.1 include/lua include/luajit-2.1 include PATHS ~/Library/Frameworks /Library/Frameworks @@ -59,7 +59,7 @@ find_path(LUA_INCLUDE_DIR lua.h ) find_library(LUA_LIBRARY - NAMES lua51 lua5.1 lua-5.1 lua + NAMES lua51 lua5.1 lua-5.1 libluajit-5.1.a lua HINTS ENV LUA_DIR PATH_SUFFIXES lib