diff options
author | madmaxoft <github@xoft.cz> | 2014-05-29 09:14:47 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-29 09:14:47 +0200 |
commit | b56033d5416306eb71bef9659fee92b368d4436e (patch) | |
tree | 7647fc9b8a29dc5ec0bc7258c68e4a59d113b205 /lib/lua/CMakeLists.txt | |
parent | Fixed a crash in message formatter. (diff) | |
parent | Cmake system name not System name (diff) | |
download | cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.gz cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.bz2 cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.lz cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.xz cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.zst cuberite-b56033d5416306eb71bef9659fee92b368d4436e.zip |
Diffstat (limited to 'lib/lua/CMakeLists.txt')
-rw-r--r-- | lib/lua/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt index db112d557..6e5e0f565 100644 --- a/lib/lua/CMakeLists.txt +++ b/lib/lua/CMakeLists.txt @@ -20,6 +20,12 @@ endif() # Lua needs to be linked dynamically on Windows and statically on *nix, so that LuaRocks work if (WIN32) + + #for compiliers other than msvc we need to tell lua that its building as a dll + if (NOT MSVC) + add_flags_cxx(-DLUA_BUILD_AS_DLL=1) + endif() + add_library(lua SHARED ${SOURCE}) set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/MCServer) |