summaryrefslogtreecommitdiff
path: root/cmake/FindFontconfig.cmake
diff options
context:
space:
mode:
authorDusan Durech <dusan@debian.debian>2009-04-14 21:32:43 +0200
committerDusan Durech <dusan@debian.debian>2009-04-14 21:32:43 +0200
commitd3d6ebad00db9ddafc4f2ee1d6bfe611625d29bc (patch)
treebcd15d8a8a89881fbde2bfa919614f6c79f0ecea /cmake/FindFontconfig.cmake
parent231398a3491a2ce87ddf09a1c797d05338519f81 (diff)
parent3c63ce46b78a3e106d5648c8d81b8da1a28b03f5 (diff)
Merge branch 'master' of ssh://oroborus@repo.or.cz/srv/git/tuxanci
Diffstat (limited to 'cmake/FindFontconfig.cmake')
-rw-r--r--cmake/FindFontconfig.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/FindFontconfig.cmake b/cmake/FindFontconfig.cmake
index 268a61a..3125c73 100644
--- a/cmake/FindFontconfig.cmake
+++ b/cmake/FindFontconfig.cmake
@@ -43,6 +43,12 @@ else (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Fontconfig DEFAULT_MSG FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR )
+
+ IF(NOT FONTCONFIG_FOUND)
+ IF(FONTCONFIG_REQUIRED)
+ MESSAGE(FATAL_ERROR "fontconfig not found")
+ ENDIF(FONTCONFIG_REQUIRED)
+ ENDIF(NOT FONTCONFIG_FOUND)
mark_as_advanced(FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR)