[General] Allow luajit-2.1

This commit is contained in:
Koncord 2017-06-30 03:55:05 +08:00
parent 0b68e59060
commit 9506f9ca35

View file

@ -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