Skip to content

Commit

Permalink
No freetype on android
Browse files Browse the repository at this point in the history
Build
  • Loading branch information
pthom committed Jan 2, 2024
1 parent 635f7c3 commit 88c9f83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

#------------------------------------------------------------------------------
Expand Down

0 comments on commit 88c9f83

Please sign in to comment.