Use freetype target if it already exists in cmake build

This commit is contained in:
Luminiscental 2021-02-21 16:19:09 +00:00
parent b681ec6527
commit bf9f698a1b
No known key found for this signature in database
GPG Key ID: 855C5F980DA84332
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@ option(FREETYPE_WITH_HARFBUZZ "Link HarfBuzz because FreeType is configured to r
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(Freetype REQUIRED)
if(NOT TARGET Freetype::Freetype)
find_package(Freetype REQUIRED)
endif()
#----------------------------------------------------------------
# Gathering File