aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/FindFontconfig.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/FindFontconfig.cmake b/modules/FindFontconfig.cmake
index e4579f95..8bb9750e 100644
--- a/modules/FindFontconfig.cmake
+++ b/modules/FindFontconfig.cmake
@@ -11,12 +11,12 @@
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-if (FONTCONFIG_LIBRARIES AND FONTCONFIG_DEFINITIONS)
+if (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR)
# in cache already
set(FONTCONFIG_FOUND TRUE)
-else (FONTCONFIG_LIBRARIES AND FONTCONFIG_DEFINITIONS)
+else (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR)
if (NOT WIN32)
# use pkg-config to get the directories and then use these values
@@ -55,4 +55,4 @@ else (FONTCONFIG_LIBRARIES AND FONTCONFIG_DEFINITIONS)
mark_as_advanced(FONTCONFIG_LIBRARIES)
-endif (FONTCONFIG_LIBRARIES AND FONTCONFIG_DEFINITIONS)
+endif (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR)