Skip to content

Commit

Permalink
Fix freetype on iOS: do not use Harfbuzz and Brotli
Browse files Browse the repository at this point in the history
For whatever reason, the build tries to use macOS libraries...
  • Loading branch information
pthom committed Jan 2, 2024
1 parent 8121982 commit 635f7c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hello_imgui_cmake/hello_imgui_build_lib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ function(_him_add_freetype_to_imgui)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)

include(FetchContent)
if(IOS)
set(FT_DISABLE_HARFBUZZ ON CACHE BOOL "" FORCE)
set(FT_DISABLE_BROTLI ON CACHE BOOL "" FORCE)
endif()
FetchContent_Declare(
freetype
GIT_REPOSITORY https://gitlab.freedesktop.org/freetype/freetype.git
Expand Down

0 comments on commit 635f7c3

Please sign in to comment.