cmake_modules/FindSDL2.cmake
branchqmlfrontend
changeset 11699 83c40c1eb0e7
parent 11657 ae6706411b24
child 15578 771e94158c76
--- a/cmake_modules/FindSDL2.cmake	Tue Mar 29 22:36:59 2016 +0300
+++ b/cmake_modules/FindSDL2.cmake	Mon Apr 25 22:10:06 2016 +0300
@@ -158,6 +158,11 @@
     SET(SDL2_LIBRARY_TEMP "${SDL2_LIBRARY_TEMP}" CACHE INTERNAL "")
 ENDIF(SDL2_LIBRARY_TEMP)
 
+if(BUILD_ENGINE_JS)
+    set(SDL2_LIBRARY "sdl2_emscripten_internal" CACHE STRING "emscripten override" FORCE)
+    set(SDL2_INCLUDE_DIR "${CMAKE_SYSTEM_INCLUDE_PATH}/SDL" CACHE STRING "emscripten override" FORCE)
+endif()
+
 INCLUDE(FindPackageHandleStandardArgs)
 
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2 REQUIRED_VARS SDL2_LIBRARY SDL2_INCLUDE_DIR)