aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-01-15 19:52:21 +0000
committerJoão Valverde <j@v6e.pt>2023-01-16 11:54:43 +0000
commit7e6266d33da6651c82a7a94b79ebc7a9865ca7d6 (patch)
tree28452c12cb34006f7326c38649262716c1f32575 /cmake/modules
parent1e1e733d8cae8e6f6b6f463160061896cb1daed2 (diff)
MSYS2: Add Lua 5.1 support and fix test suite failures
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/FindLUA.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/modules/FindLUA.cmake b/cmake/modules/FindLUA.cmake
index 0336ca6a10..bc2a41e1f6 100644
--- a/cmake/modules/FindLUA.cmake
+++ b/cmake/modules/FindLUA.cmake
@@ -100,6 +100,15 @@ IF(LUA_FOUND)
)
mark_as_advanced( LUA_DLL_DIR LUA_DLL )
endif()
+ if(LUA_DLL_DIR MATCHES ".*/lua-.*-unicode-.*")
+ # Do we have Lua with Unicode for Windows patches?
+ # https://github.com/Lekensteyn/lua-unicode
+ # XXX Would be better if it was possible to
+ # detect a Lua-unicode build from C and Lua code
+ # but upstream rejected patches for that so we do
+ # it here.
+ set(HAVE_LUA_UNICODE True)
+ endif()
ELSE(LUA_FOUND)
SET( LUA_LIBRARIES )
SET( LUA_INCLUDE_DIRS )