diff options
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 3a6eae15..24585108 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -29,12 +29,23 @@ if( WITH_GCC_VISIBILITY ) endif( ) -# freetype2 +##### check for freetype ##################### if( BUILD_KDVI OR BUILD_KPDF OR BUILD_KSVG ) pkg_search_module( FREETYPE freetype2 ) if( FREETYPE_FOUND ) set( HAVE_FREETYPE 1 ) else( ) - tde_message_fatal( "freetype2 is required, but was not found on your system" ) + tde_message_fatal( "freetype is required, but was not found on your system" ) endif( ) endif( ) + + +##### check for fontconfig ###################### +if( BUILD_KPDF OR BUILD_KSVG ) + pkg_search_module( FONTCONFIG fontconfig ) + if( FONTCONFIG_FOUND ) + set( HAVE_FONTCONFIG 1 CACHE INTERNAL "" FORCE ) + else( ) + message(FATAL_ERROR "fontconfig is required, but not found on your system" ) + endif( ) +endif( ) |