LUA: Requre version 5.3 or greater

This commit is contained in:
Anders Broman 2024-04-06 17:38:39 +02:00 committed by AndersBroman
parent 40c420ab9b
commit 3852a0b5b0
2 changed files with 2 additions and 2 deletions

View File

@ -1386,7 +1386,7 @@ if(FETCH_lua)
# Download and build lua
include(${CMAKE_SOURCE_DIR}/cmake/external/lua53/Lua53.cmake)
else()
set(LUA_FIND_VERSIONS "5.4;5.3;5.2;5.1" CACHE STRING "Lua versions valid for the build (as a list)")
set(LUA_FIND_VERSIONS "5.4;5.3" CACHE STRING "Lua versions valid for the build (as a list)")
ws_find_package(Lua ENABLE_LUA HAVE_LUA)
endif()

View File

@ -56,7 +56,7 @@ unset(_lua_append_versions)
# this is a function only to have all the variables inside go away automatically
function(_lua_get_versions)
set(LUA_VERSIONS5 ${LUA_FIND_VERSIONS})
list(FILTER LUA_VERSIONS5 INCLUDE REGEX "5\.[4321]")
list(FILTER LUA_VERSIONS5 INCLUDE REGEX "5\.[43]")
set(_lua_append_versions ${LUA_VERSIONS5})
message(STATUS "Considering the following Lua versions: ${_lua_append_versions}")