From e891499a9f568d26747ae227583c924d06ddd47f Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 20 Feb 2024 17:39:16 +1100 Subject: [PATCH] Update CMakeLists.txt --- source/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index ec4fe0f..cdc1ea6 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -431,6 +431,14 @@ INCLUDE_DIRECTORIES (SYSTEM ${OGGVORBIS_INCLUDE_DIR} ) +IF (TARGET freetype AND NOT TARGET Freetype::Freetype) + add_library(Freetype::Freetype ALIAS freetype) +ELSEIF (TARGET Freetype::Freetype AND NOT TARGET freetype) + add_library(freetype ALIAS Freetype::Freetype) +ELSE () + MESSAGE (FATAL_ERROR "Could not find Freetype") +ENDIF () + SET (STAR_EXT_LIBS ${STAR_EXT_LIBS} ZLIB::ZLIB PNG::PNG