We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96099b9 commit 2248b5dCopy full SHA for 2248b5d
addons/CMakeLists.txt
@@ -112,7 +112,9 @@ if(SUPPORT_FONT AND WANT_TTF)
112
endif()
113
114
if (FREETYPE_HARFBUZZ AND HARFBUZZ_FOUND)
115
- list(APPEND FREETYPE_STATIC_LIBRARIES "${HARFBUZZ_LIBRARIES}")
+ # there's a circular dependency between Harfbuzz and Freetype, so one of them has to be
116
+ # repeated to ensure proper static linking order
117
+ list(APPEND FREETYPE_STATIC_LIBRARIES "${HARFBUZZ_LIBRARIES}" "${FREETYPE_LIBRARIES}")
118
119
120
set(CMAKE_REQUIRED_LIBRARIES ${FREETYPE_STATIC_LIBRARIES})
0 commit comments