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 a2a13afc..10fd0734 100644
--- a/modules/FindFontconfig.cmake
+++ b/modules/FindFontconfig.cmake
@@ -21,8 +21,8 @@ else (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR)
if (NOT WIN32)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
- include(FindPkgConfig)
- PKG_CHECK_MODULES(FONTCONFIG fontconfig)
+ find_package(PkgConfig)
+ pkg_check_modules(FONTCONFIG fontconfig)
set(FONTCONFIG_DEFINITIONS ${FONTCONFIG_CFLAGS})
endif (NOT WIN32)