BUILD: prefer pkg-config for freetype2 detection
authorhasufell <hasufell@posteo.de>
Sun, 8 Dec 2013 20:05:25 +0000 (21:05 +0100)
committerIlya Zhuravlev <zhuravlevilya@ya.ru>
Sun, 5 Jan 2014 16:58:40 +0000 (20:58 +0400)
commitcb7bb736c70afa7e7dfc90545ad52992a35dc082
tree75af1664713d53193bea02f670c1e8fa3505a4c7
parent160e2b7b7d1edc7630db0eb0ebbd796a66aab89a
BUILD: prefer pkg-config for freetype2 detection

This can solve numerous problems such as:
http://www.cmake.org/Bug/view.php?id=13959
http://www.cmake.org/Bug/view.php?id=14601

If pkg-config or freetype2.pc is not found, then fall back to the
FindFreetype.cmake module logic.

Restrict to UNIX since I only tested it here.
src/CMakeLists.txt
src/cguittfont/CMakeLists.txt