diff options
author | Laurent Montel <montel@kde.org> | 2006-11-09 14:05:02 +0000 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2006-11-09 14:05:02 +0000 |
commit | 1268579a93f7d2915c547c923048c30dd0899f05 (patch) | |
tree | 18351ed3e0f2b5ee7283634bb3c2b9a229b137f5 | |
parent | c7389107ed55feb98185d17bbd245a2161f9e870 (diff) | |
download | extra-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.cmake | 11 |
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) |