diff --git a/CMakeLists.txt b/CMakeLists.txt index d850d070..e823933e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,9 +84,11 @@ option(HELLOIMGUI_USE_SDL_DIRECTX12 "Build HelloImGui for SDL2+DirectX12" OFF) # Options / Freetype #------------------------------------------------------------------------------ set(freetype_default ON) -if(IOS OR ANDROID) +if(ANDROID) + # Freetype is not available on Android. The mix SDL + Freetype cause issues (cannot find SDL.h) set(freetype_default OFF) endif() +# Note: to reduce wasm size, you may want to disable freetype on emscripten. option(HELLOIMGUI_USE_FREETYPE "Use freetype for text rendering" ${freetype_default}) #------------------------------------------------------------------------------