mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-25 00:26:17 +00:00
Fixed: #1000 ft2build.h not found by FindFreetype
This commit is contained in:
parent
355d3c1a58
commit
daab8d87df
2 changed files with 34 additions and 0 deletions
|
@ -23,6 +23,23 @@ FIND_PATH(FREETYPE_INCLUDE_DIRS
|
||||||
PATH_SUFFIXES freetype freetype2
|
PATH_SUFFIXES freetype freetype2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# ft2build.h does not reside in the freetype include dir
|
||||||
|
FIND_PATH(FREETYPE_ADDITIONAL_INCLUDE_DIR
|
||||||
|
ft2build.h
|
||||||
|
PATHS
|
||||||
|
/usr/local/include
|
||||||
|
/usr/include
|
||||||
|
/sw/include
|
||||||
|
/opt/local/include
|
||||||
|
/opt/csw/include
|
||||||
|
/opt/include
|
||||||
|
)
|
||||||
|
|
||||||
|
# combine both include directories into one variable
|
||||||
|
IF(FREETYPE_ADDITIONAL_INCLUDE_DIR)
|
||||||
|
SET(FREETYPE_INCLUDE_DIRS ${FREETYPE_INCLUDE_DIRS} ${FREETYPE_ADDITIONAL_INCLUDE_DIR})
|
||||||
|
ENDIF(FREETYPE_ADDITIONAL_INCLUDE_DIR)
|
||||||
|
|
||||||
FIND_LIBRARY(FREETYPE_LIBRARY
|
FIND_LIBRARY(FREETYPE_LIBRARY
|
||||||
NAMES freetype libfreetype freetype219
|
NAMES freetype libfreetype freetype219
|
||||||
PATHS
|
PATHS
|
||||||
|
|
|
@ -23,6 +23,23 @@ FIND_PATH(FREETYPE_INCLUDE_DIRS
|
||||||
PATH_SUFFIXES freetype freetype2
|
PATH_SUFFIXES freetype freetype2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# ft2build.h does not reside in the freetype include dir
|
||||||
|
FIND_PATH(FREETYPE_ADDITIONAL_INCLUDE_DIR
|
||||||
|
ft2build.h
|
||||||
|
PATHS
|
||||||
|
/usr/local/include
|
||||||
|
/usr/include
|
||||||
|
/sw/include
|
||||||
|
/opt/local/include
|
||||||
|
/opt/csw/include
|
||||||
|
/opt/include
|
||||||
|
)
|
||||||
|
|
||||||
|
# combine both include directories into one variable
|
||||||
|
IF(FREETYPE_ADDITIONAL_INCLUDE_DIR)
|
||||||
|
SET(FREETYPE_INCLUDE_DIRS ${FREETYPE_INCLUDE_DIRS} ${FREETYPE_ADDITIONAL_INCLUDE_DIR})
|
||||||
|
ENDIF(FREETYPE_ADDITIONAL_INCLUDE_DIR)
|
||||||
|
|
||||||
FIND_LIBRARY(FREETYPE_LIBRARY
|
FIND_LIBRARY(FREETYPE_LIBRARY
|
||||||
NAMES freetype libfreetype freetype219
|
NAMES freetype libfreetype freetype219
|
||||||
PATHS
|
PATHS
|
||||||
|
|
Loading…
Reference in a new issue