From 3733ca4500ce7a8a3eabfe002a5ea244b7d48342 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 6 Feb 2022 21:14:40 -0500 Subject: [PATCH] Set a minimum freetype version under msvc at least --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 16e60f8ca1..af99ea1e2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -724,7 +724,12 @@ include_directories( SYSTEM ${Boost_INCLUDE_DIR} ) # # 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} ) find_package( HarfBuzz REQUIRED )