16 lines
800 B
Diff
16 lines
800 B
Diff
|
Index: b/CMake/Packages/FindFreetype.cmake
|
||
|
===================================================================
|
||
|
--- a/CMake/Packages/FindFreetype.cmake
|
||
|
+++ b/CMake/Packages/FindFreetype.cmake
|
||
|
@@ -39,6 +39,10 @@ find_library(FREETYPE_LIBRARY_REL NAMES
|
||
|
find_library(FREETYPE_LIBRARY_DBG NAMES ${FREETYPE_LIBRARY_NAMES_DBG} HINTS ${FREETYPE_LIB_SEARCH_PATH} ${FREETYPE_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" debug)
|
||
|
make_library_set(FREETYPE_LIBRARY)
|
||
|
|
||
|
+# openSUSE +13.1 has both in one directory and there is no freetype/freetype.h inside include/freetype2
|
||
|
+if (NOT FREETYPE_INCLUDE_DIR)
|
||
|
+ set(FREETYPE_INCLUDE_DIR ${FREETYPE_FT2BUILD_INCLUDE_DIR})
|
||
|
+endif ()
|
||
|
findpkg_finish(FREETYPE)
|
||
|
mark_as_advanced(FREETYPE_FT2BUILD_INCLUDE_DIR)
|
||
|
if (NOT FREETYPE_FT2BUILD_INCLUDE_DIR STREQUAL FREETYPE_INCLUDE_DIR)
|