disabled LUA_ANSI on windows as it disables the libary open functionality

This commit is contained in:
jackeri 2014-10-20 11:50:09 +03:00
parent 59cb50132b
commit b0d67b0dec

View file

@ -155,9 +155,13 @@ if(WIN32)
)
add_library(bundled_lua STATIC ${LUA_LIB_SRC} ${LUA_LIB_HEADERS})
# If LUA_ANSI is enabled on windows the library loading functionality is disabled
if(NOT WIN32)
set_target_properties(bundled_lua
PROPERTIES COMPILE_DEFINITIONS "LUA_ANSI"
)
endif()
set(LUA_BUNDLED_LIBRARIES bundled_lua)
set(LUA_BUNDLED_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/lua/src")