mirror of https://github.com/Chlumsky/msdfgen.git
Use freetype target if it already exists in cmake build
This commit is contained in:
parent
b681ec6527
commit
bf9f698a1b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue