--- a/cmake_modules/FindSDL2_net.cmake Tue Mar 29 22:36:59 2016 +0300
+++ b/cmake_modules/FindSDL2_net.cmake Mon Apr 25 22:10:06 2016 +0300
@@ -74,6 +74,12 @@
set(SDL2_NET_LIBRARIES ${SDL2_NET_LIBRARY})
set(SDL2_NET_INCLUDE_DIRS ${SDL2_NET_INCLUDE_DIR})
+if(BUILD_ENGINE_JS)
+ set(SDL2_NET_LIBRARY "sdl2_net_emscripten_internal")
+ set(SDL2_NET_LIBRARIES "sdl2_net_emscripten_internal")
+ set(SDL2_NET_INCLUDE_DIRS "${CMAKE_SYSTEM_INCLUDE_PATH}/SDL")
+endif()
+
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2_net