Check for Lua binary under more names (with version)

HEAD
Jochen Topf 2022-04-25 20:36:51 +02:00
parent 4137e03f68
commit c5fb7f3c5d
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ if (WITH_LUA)
include_directories(SYSTEM ${LUA_INCLUDE_DIR})
endif()
add_definitions(-DHAVE_LUA=1)
find_program(LUA_EXE lua)
find_program(LUA_EXE NAMES lua lua5.4 lua5.3 lua5.2 lua5.1)
else()
message(STATUS "Building without Lua support")
endif()