1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 11:53:53 +00:00

Enforce Lua 5.1 when LuaJIT is not being used

Later minor version bumps of Lua somehow break a lot of our code, this
will fix things like 3rd person mode, crosshair etc for the Apple
Silicon build
This commit is contained in:
Andrew Dunn 2022-09-16 08:39:45 +10:00
parent 9bed210e4e
commit fe59b9a92a

View file

@ -459,7 +459,7 @@ if(USE_LUAJIT)
set(LUA_INCLUDE_DIR ${LuaJit_INCLUDE_DIR})
set(LUA_LIBRARIES ${LuaJit_LIBRARIES})
else(USE_LUAJIT)
find_package(Lua REQUIRED)
find_package(Lua 5.1 EXACT REQUIRED)
add_compile_definitions(NO_LUAJIT)
endif(USE_LUAJIT)