From fe59b9a92aac6cd96d855e21715e44912585d572 Mon Sep 17 00:00:00 2001 From: Andrew Dunn Date: Fri, 16 Sep 2022 08:39:45 +1000 Subject: [PATCH] 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 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fbd3eda8ec..af81d9c7e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)