mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2025-02-24 04:01:12 +00:00
disabled LUA_ANSI on windows as it disables the libary open functionality
This commit is contained in:
parent
59cb50132b
commit
b0d67b0dec
1 changed files with 7 additions and 3 deletions
|
@ -155,9 +155,13 @@ if(WIN32)
|
|||
)
|
||||
|
||||
add_library(bundled_lua STATIC ${LUA_LIB_SRC} ${LUA_LIB_HEADERS})
|
||||
set_target_properties(bundled_lua
|
||||
PROPERTIES COMPILE_DEFINITIONS "LUA_ANSI"
|
||||
)
|
||||
|
||||
# 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")
|
||||
|
|
Loading…
Reference in a new issue