LUA: Requre version 5.3 or greater
This commit is contained in:
parent
40c420ab9b
commit
3852a0b5b0
|
@ -1386,7 +1386,7 @@ if(FETCH_lua)
|
||||||
# Download and build lua
|
# Download and build lua
|
||||||
include(${CMAKE_SOURCE_DIR}/cmake/external/lua53/Lua53.cmake)
|
include(${CMAKE_SOURCE_DIR}/cmake/external/lua53/Lua53.cmake)
|
||||||
else()
|
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)
|
ws_find_package(Lua ENABLE_LUA HAVE_LUA)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ unset(_lua_append_versions)
|
||||||
# this is a function only to have all the variables inside go away automatically
|
# this is a function only to have all the variables inside go away automatically
|
||||||
function(_lua_get_versions)
|
function(_lua_get_versions)
|
||||||
set(LUA_VERSIONS5 ${LUA_FIND_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})
|
set(_lua_append_versions ${LUA_VERSIONS5})
|
||||||
message(STATUS "Considering the following Lua versions: ${_lua_append_versions}")
|
message(STATUS "Considering the following Lua versions: ${_lua_append_versions}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue