Fix system freetype detection

This commit is contained in:
Georg Hagen
2024-10-10 21:11:43 +02:00
parent 565fdafbeb
commit 552cbd3925

View File

@@ -13,11 +13,11 @@ if (ENABLE_MSDF)
set(FREETYPE_REPO https://github.com/freetype/freetype.git) set(FREETYPE_REPO https://github.com/freetype/freetype.git)
endif() endif()
unset(Freetype_FOUND) unset(freetype_FOUND)
if (NOT APPLE) if (NOT IOS)
find_package(Freetype QUIET) find_package(freetype QUIET)
endif () endif ()
if (NOT Freetype_FOUND OR NOT EXISTS "${CMAKE_BINARY_DIR}/_deps/freetype-src/build") if (NOT freetype_FOUND OR NOT EXISTS "${CMAKE_BINARY_DIR}/_deps/freetype-src/build")
message("Installing freetype from sources") message("Installing freetype from sources")
FetchContent_Declare( FetchContent_Declare(
freetype freetype