diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindX11.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindX11.cmake b/Modules/FindX11.cmake index 8a18d4d..01a9ef7 100644 --- a/Modules/FindX11.cmake +++ b/Modules/FindX11.cmake @@ -203,7 +203,11 @@ if (UNIX) endif() if(X11_Xft_LIB AND X11_Xft_INCLUDE_PATH) - set(X11_Xft_FOUND TRUE) + find_package(Freetype QUIET) + find_package(Fontconfig QUIET) + if (FREETYPE_FOUND AND FONTCONFIG_FOUND) + set(X11_Xft_FOUND TRUE) + endif () list(APPEND X11_INCLUDE_DIR ${X11_Xft_INCLUDE_PATH}) endif() |