Set a minimum freetype version under msvc at least

This commit is contained in:
Marek Roszko 2022-02-06 21:14:40 -05:00
parent 1f8d101b1d
commit 3733ca4500
1 changed files with 6 additions and 1 deletions

View File

@ -724,7 +724,12 @@ include_directories( SYSTEM ${Boost_INCLUDE_DIR} )
# #
# Libraries required for outline font support. # Libraries required for outline font support.
find_package( Freetype REQUIRED ) if( MSVC )
# Earlier than 2.11.1 contain a crash bug specific to MSVC built freetype
set( FREETYPE_MIN_VERSION 2.11.1 )
endif()
find_package( Freetype ${FREETYPE_MIN_VERSION} REQUIRED )
include_directories( SYSTEM ${FREETYPE_INCLUDE_DIRS} ) include_directories( SYSTEM ${FREETYPE_INCLUDE_DIRS} )
find_package( HarfBuzz REQUIRED ) find_package( HarfBuzz REQUIRED )