From 9506f9ca35f3895506a761b686f0a14e64879e8b Mon Sep 17 00:00:00 2001 From: Koncord Date: Fri, 30 Jun 2017 03:55:05 +0800 Subject: [PATCH] [General] Allow luajit-2.1 --- cmake/FindLua51.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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