Fix freetype compilation including the correct dir for ftconfig.h for Unix-like systems

This commit is contained in:
David Capello 2022-05-09 13:06:41 -03:00
parent ff397fe425
commit 5864e84d47

View File

@ -1,5 +1,5 @@
# Aseprite
# Copyright (C) 2021 Igara Studio S.A.
# Copyright (C) 2021-2022 Igara Studio S.A.
# Copyright (C) 2001-2018 David Capello
include_directories(.)
@ -85,6 +85,11 @@ if(NOT USE_SHARED_FREETYPE AND NOT LAF_BACKEND STREQUAL "skia")
add_subdirectory(freetype2)
if(UNIX)
target_include_directories(freetype BEFORE PUBLIC
${CMAKE_CURRENT_BINARY_DIR}/freetype2/include)
endif()
if(NOT USE_SHARED_LIBPNG)
add_dependencies(freetype ${PNG_LIBRARIES})
endif()