Merge pull request #1 from on-three/emscripten

Added emscripten support for web builds
This commit is contained in:
walterschell 2019-03-02 16:40:14 -05:00 committed by GitHub
commit 722505a73d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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})