diff options
author | worktycho <work.tycho@gmail.com> | 2014-05-28 16:59:59 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-05-28 16:59:59 +0200 |
commit | 171e13de4f58cdc4f8a97cd8adfbfbfbcf1df615 (patch) | |
tree | 444425a47918906cbbd339486cddeef2e8ae5d8f /lib | |
parent | Fixed a memory leak in cPrefabPiecePool. (diff) | |
download | cuberite-171e13de4f58cdc4f8a97cd8adfbfbfbcf1df615.tar cuberite-171e13de4f58cdc4f8a97cd8adfbfbfbcf1df615.tar.gz cuberite-171e13de4f58cdc4f8a97cd8adfbfbfbcf1df615.tar.bz2 cuberite-171e13de4f58cdc4f8a97cd8adfbfbfbcf1df615.tar.lz cuberite-171e13de4f58cdc4f8a97cd8adfbfbfbcf1df615.tar.xz cuberite-171e13de4f58cdc4f8a97cd8adfbfbfbcf1df615.tar.zst cuberite-171e13de4f58cdc4f8a97cd8adfbfbfbcf1df615.zip |
Diffstat (limited to 'lib')
-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) |