misc/liblua/CMakeLists.txt
changeset 11664 71bdf987e41f
parent 10015 4feced261c68
--- a/misc/liblua/CMakeLists.txt	Thu Apr 21 11:54:21 2016 -0400
+++ b/misc/liblua/CMakeLists.txt	Thu Apr 21 11:55:36 2016 -0400
@@ -23,4 +23,8 @@
 set(LUA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE STRING "Lua include dir" FORCE)
 set(LUA_LIBRARY ${lua_fullpath} CACHE STRING "Lua library" FORCE)
 
+#emscripten does not expose headers but has an internal binary copy
+if(BUILD_ENGINE_JS)
+    set(LUA_LIBRARY "lua_emscripten_internal" CACHE STRING "Lua library" FORCE)
+endif()