mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-15 19:52:05 +00:00
Fix crash using built-in zlib functions from freetype
We must define FT_CONFIG_OPTION_SYSTEM_ZLIB to use zlib instead of the built-in zlib functions in FreeType (which crash the program).
This commit is contained in:
parent
5864e84d47
commit
e823ee37e9
2
third_party/CMakeLists.txt
vendored
2
third_party/CMakeLists.txt
vendored
@ -85,6 +85,8 @@ if(NOT USE_SHARED_FREETYPE AND NOT LAF_BACKEND STREQUAL "skia")
|
|||||||
|
|
||||||
add_subdirectory(freetype2)
|
add_subdirectory(freetype2)
|
||||||
|
|
||||||
|
target_compile_definitions(freetype PUBLIC
|
||||||
|
FT_CONFIG_OPTION_SYSTEM_ZLIB)
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
target_include_directories(freetype BEFORE PUBLIC
|
target_include_directories(freetype BEFORE PUBLIC
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/freetype2/include)
|
${CMAKE_CURRENT_BINARY_DIR}/freetype2/include)
|
||||||
|
Loading…
Reference in New Issue
Block a user