Fixed compatibility with ZeroBraneStudio and LuaRocks.
Lua now compiles into lua51.dll and there's a lua5.1.dll that acts as a export-forwarding proxy to lua51.dll.
This commit is contained in:
parent
03624f33a7
commit
6a191cce0a
BIN
MCServer/lua5.1.dll
Normal file
BIN
MCServer/lua5.1.dll
Normal file
Binary file not shown.
@ -47,8 +47,12 @@ if (WIN32)
|
||||
)
|
||||
endif()
|
||||
|
||||
set_target_properties(lua PROPERTIES OUTPUT_NAME "lua51")
|
||||
|
||||
# NOTE: The DLL for each configuration is stored at the same place, thus overwriting each other.
|
||||
# This is known, however such behavior is needed for LuaRocks - they always load "lua.dll"
|
||||
# This is known, however such behavior is needed for LuaRocks - they always load "lua5.1.dll" or "lua51.dll"
|
||||
# We make it work by compiling to "lua51.dll" and providing a proxy-DLL "lua5.1.dll"
|
||||
# See http://lua-users.org/wiki/LuaProxyDllFour for details
|
||||
else()
|
||||
add_library(lua ${SOURCE})
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user