for compiliers other than msvc we need to tell lua that its building as a dll
This commit is contained in:
parent
d29b242674
commit
171e13de4f
@ -20,6 +20,12 @@ endif()
|
|||||||
|
|
||||||
# Lua needs to be linked dynamically on Windows and statically on *nix, so that LuaRocks work
|
# Lua needs to be linked dynamically on Windows and statically on *nix, so that LuaRocks work
|
||||||
if (WIN32)
|
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})
|
add_library(lua SHARED ${SOURCE})
|
||||||
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/MCServer)
|
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/MCServer)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user