cmake_modules/FindSDL2_ttf.cmake
changeset 11657 ae6706411b24
parent 9677 71626318f80e
child 12383 e3d9abcc427a
--- a/cmake_modules/FindSDL2_ttf.cmake	Thu Apr 21 00:09:07 2016 -0400
+++ b/cmake_modules/FindSDL2_ttf.cmake	Thu Apr 21 00:10:23 2016 -0400
@@ -74,6 +74,12 @@
 set(SDL2_TTF_LIBRARIES ${SDL2_TTF_LIBRARY})
 set(SDL2_TTF_INCLUDE_DIRS ${SDL2_TTF_INCLUDE_DIR})
 
+if(BUILD_ENGINE_JS)
+    set(SDL2_TTF_LIBRARY "sdl2_ttf_emscripten_internal")
+    set(SDL2_TTF_LIBRARIES "sdl2_ttf_emscripten_internal")
+    set(SDL2_TTF_INCLUDE_DIRS "${CMAKE_SYSTEM_INCLUDE_PATH}/SDL")
+endif()
+
 include(FindPackageHandleStandardArgs)
 
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDL2_ttf