From 9d91fc65fa955d6ba878a4f72a93a004b02af2a5 Mon Sep 17 00:00:00 2001 From: Sergei Nikulov Date: Fri, 31 Aug 2012 12:24:37 +0400 Subject: [PATCH] fix for discovering ft2build.h using FREETYPE_DIR environment var (#13502) --- Modules/FindFreetype.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Modules/FindFreetype.cmake b/Modules/FindFreetype.cmake index c7cf0eb6b..cdb46beff 100644 --- a/Modules/FindFreetype.cmake +++ b/Modules/FindFreetype.cmake @@ -46,9 +46,10 @@ find_path(FREETYPE_INCLUDE_DIR_ft2build ft2build.h HINTS ENV FREETYPE_DIR PATHS - /usr/local/X11R6/include - /usr/local/X11/include - /usr/freeware/include + /usr/local/X11R6 + /usr/local/X11 + /usr/freeware + PATH_SUFFIXES include/freetype2 include ) find_path(FREETYPE_INCLUDE_DIR_freetype2 freetype/config/ftheader.h