aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2006-11-09 14:05:02 +0000
committerLaurent Montel <montel@kde.org>2006-11-09 14:05:02 +0000
commit1268579a93f7d2915c547c923048c30dd0899f05 (patch)
tree18351ed3e0f2b5ee7283634bb3c2b9a229b137f5
parentc7389107ed55feb98185d17bbd245a2161f9e870 (diff)
downloadextra-cmake-modules-1268579a93f7d2915c547c923048c30dd0899f05.tar.gz
extra-cmake-modules-1268579a93f7d2915c547c923048c30dd0899f05.tar.bz2
Fatal error when we didn't find it and it's requires
(found when I try to port compile under MacOsX) svn path=/trunk/KDE/kdelibs/; revision=603631
-rw-r--r--modules/FindFreetype.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/FindFreetype.cmake b/modules/FindFreetype.cmake
index 8fdb1692..571021a0 100644
--- a/modules/FindFreetype.cmake
+++ b/modules/FindFreetype.cmake
@@ -45,4 +45,15 @@ else (FREETYPE_LIBRARIES AND FREETYPE_INCLUDE_DIR)
endif(FREETYPECONFIG_EXECUTABLE)
+
+ IF (FREETYPE_FOUND)
+ IF (NOT FREETYPE_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Freetype: ${FREETYPE_LIBRARIES}")
+ ENDIF (NOT FREETYPE_FIND_QUIETLY)
+ ELSE (FREETYPE_FOUND)
+ IF (FREETYPE_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could not find FreeType library")
+ ENDIF (FREETYPE_FIND_REQUIRED)
+ ENDIF (FREETYPE_FOUND)
+
endif (FREETYPE_LIBRARIES AND FREETYPE_INCLUDE_DIR)