I'm not sure whether this necessarily constitutes a bug, but cmake can't find the Freetype headers when compiling on an Arch system. The patch below resolves this:
Code: Select all
diff -r 319182022f9f cmake/FindFreetype.cmake
--- a/cmake/FindFreetype.cmake Sat Dec 07 09:00:48 2013 +0000
+++ b/cmake/FindFreetype.cmake Sun Dec 15 10:30:53 2013 +0000
@@ -3,8 +3,8 @@
################################################################################
include(FindPackageHandleStandardArgs)
-find_path(FREETYPE_H_PATH_ft2build NAMES ft2build.h)
-find_path(FREETYPE_H_PATH_ftconfig NAMES freetype/config/ftconfig.h PATH_SUFFIXES freetype2)
+find_path(FREETYPE_H_PATH_ft2build NAMES ft2build.h PATH_SUFFIXES freetype2)
+find_path(FREETYPE_H_PATH_ftconfig NAMES config/ftconfig.h PATH_SUFFIXES freetype2)
find_library(FREETYPE_LIB NAMES freetype2 freetype libfreetype PATH_SUFFIXES dynamic)
find_library(FREETYPE_LIB_DBG NAMES freetype_d libfreetype_d PATH_SUFFIXES dynamic)
mark_as_advanced(FREETYPE_H_PATH_ft2build FREETYPE_H_PATH_ftconfig FREETYPE_LIB FREETYPE_LIB_DBG)
However, I'm not a cmake expert, so I'm not sure whether this will have a detrimental effect in other environments...
Thoughts/comments appreciated.
Thanks,
Matt