[Krename-users] [PATCH] Use the right variable for FreeType includes in CMake
Brought to you by:
domseichter,
stonki
From: Raphael K. da C. <ra...@Fr...> - 2013-08-24 22:37:38
|
Hi, Recent releases of kdelibs have stopped shipping their own copy of FindFreeType.cmake, relying on CMake's own FindFreetype.cmake instead. One of the noticeable changes it that FREETYPE_INCLUDE_DIR (which was supposed to be an internal variable before anyway) does not exist in CMake's FindFreetype, which causes the INCLUDE_DIRECTORIES() call KRename does actually null. The patch below should be enough to fix the problem. Index: src/CMakeLists.txt =================================================================== --- src/CMakeLists.txt (revision 245) +++ src/CMakeLists.txt (working copy) @@ -18,7 +18,7 @@ ENDIF(LIBPODOFO_FOUND) IF(FREETYPE_FOUND) - INCLUDE_DIRECTORIES( ${FREETYPE_INCLUDE_DIR} ) + INCLUDE_DIRECTORIES( ${FREETYPE_INCLUDE_DIRS} ) ENDIF(FREETYPE_FOUND) ADD_DEFINITIONS(${TAGLIB_CFLAGS} ${EXIV2_CFLAGS} ${LIBPODOFO_CFLAGS} ${KDE4_DEFINITIONS} ) |