mirror of
https://github.com/walterschell/Lua.git
synced 2024-11-15 12:15:43 +08:00
Merge pull request #1 from on-three/emscripten
Added emscripten support for web builds
This commit is contained in:
commit
722505a73d
@ -36,5 +36,8 @@ set(LUA_LIB_SRCS
|
||||
set(LUA_LIB_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||
add_library(lua_static STATIC ${LUA_LIB_SRCS})
|
||||
target_include_directories(lua_static PUBLIC ${LUA_LIB_INCLUDE})
|
||||
target_compile_definitions(lua_static PUBLIC LUA_USE_POSIX)
|
||||
|
||||
set(LUA_DEFINITIONS LUA_USE_POSIX)
|
||||
if(EMSCRIPTEN)
|
||||
unset(LUA_DEFINITIONS)
|
||||
endif()
|
||||
target_compile_definitions(lua_static PUBLIC ${LUA_DEFINITIONS})
|
||||
|
Loading…
Reference in New Issue
Block a user