From 88c9f83677e308265cd2b093ffd2c51ca586e0a8 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Tue, 2 Jan 2024 22:33:31 +0100 Subject: [PATCH] No freetype on android Build --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}) #------------------------------------------------------------------------------