From 652989119b25aac450536838347d10fba71d71d2 Mon Sep 17 00:00:00 2001 From: Soumith Chintala Date: Wed, 3 Feb 2016 16:57:40 -0500 Subject: enabled lua52 compatibility mode by default --- lua-5.3/CMakeLists.txt | 3 +++ lua-5.3/src/luaconf.h.in | 1 + 2 files changed, 4 insertions(+) diff --git a/lua-5.3/CMakeLists.txt b/lua-5.3/CMakeLists.txt index 35483f7..37e0d2b 100644 --- a/lua-5.3/CMakeLists.txt +++ b/lua-5.3/CMakeLists.txt @@ -28,6 +28,9 @@ IF(UNIX) SET(LUA_USE_POSIX 1) ENDIF() +# compatibility with Lua 5.2 +SET(LUA_COMPAT_5_2 1) + # Readline support FIND_PACKAGE(Readline) IF(READLINE_FOUND) diff --git a/lua-5.3/src/luaconf.h.in b/lua-5.3/src/luaconf.h.in index f0bba74..3e12f15 100644 --- a/lua-5.3/src/luaconf.h.in +++ b/lua-5.3/src/luaconf.h.in @@ -16,6 +16,7 @@ #cmakedefine LUA_USE_POSIX 1 #cmakedefine LUA_USE_READLINE 1 #cmakedefine LUA_BUILD_AS_DLL 1 +#cmakedefine LUA_COMPAT_5_2 1 #define LUA_ROOT "@LUA_ROOT@/" /* -- cgit v1.2.3