Lua links properly
mlib required to build Lua, dl lib used to load compiled plugins from shared libraries.
@@ -117,6 +117,9 @@ else()
)
list(TRANSFORM LUA_SRC PREPEND deps/lua/)
add_library(lua SHARED ${LUA_SRC})
+ target_link_libraries(lua m)
+ target_link_libraries(lua dl)
+ target_compile_definitions(lua PRIVATE -DLUA_USE_DLOPEN)
include_directories(deps/lua)
set(LOVR_LUA lua)
endif()
