CMake: Search all possibly usable Lua executables. (#4858)

This commit is contained in:
Florian Walch
2016-06-03 18:21:29 +02:00
committed by Justin M. Keyes
parent 8bf94f8f0d
commit abe47d5f64

View File

@@ -374,7 +374,7 @@ endforeach()
include(LuaHelpers)
set(LUA_DEPENDENCIES lpeg mpack bit)
if(NOT LUA_PRG)
foreach(CURRENT_LUA_PRG luajit lua)
foreach(CURRENT_LUA_PRG luajit lua5.1 lua5.2 lua)
# If LUA_PRG is set find_program() will not search
unset(LUA_PRG CACHE)
unset(LUA_PRG_WORKS)