aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/FindFontconfig.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/FindFontconfig.cmake b/modules/FindFontconfig.cmake
index 8bb9750e..14ae7a98 100644
--- a/modules/FindFontconfig.cmake
+++ b/modules/FindFontconfig.cmake
@@ -39,9 +39,9 @@ else (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR)
${_FONTCONFIGLinkDir}
)
- if (FONTCONFIG_LIBRARIES)
+ if (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR)
set(FONTCONFIG_FOUND TRUE)
- endif (FONTCONFIG_LIBRARIES)
+ endif (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR)
if (FONTCONFIG_FOUND)
if (NOT FONTCONFIG_FIND_QUIETLY)