aboutsummaryrefslogtreecommitdiff
path: root/modules/FindFontconfig.cmake
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2006-11-20 09:34:10 +0000
committerLaurent Montel <montel@kde.org>2006-11-20 09:34:10 +0000
commit491b73d5a0712517b0be22ef7657b91a078ec08c (patch)
tree10652585a7d25b587fe0bc53459886fc76d2d961 /modules/FindFontconfig.cmake
parent686e98c28b13088f1a86fa3b1c910d1037122cbb (diff)
downloadextra-cmake-modules-491b73d5a0712517b0be22ef7657b91a078ec08c.tar.gz
extra-cmake-modules-491b73d5a0712517b0be22ef7657b91a078ec08c.tar.bz2
Don't try to use pkg-config under Windows
svn path=/trunk/KDE/kdelibs/; revision=606389
Diffstat (limited to 'modules/FindFontconfig.cmake')
-rw-r--r--modules/FindFontconfig.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/FindFontconfig.cmake b/modules/FindFontconfig.cmake
index 3f588479..f90c3b32 100644
--- a/modules/FindFontconfig.cmake
+++ b/modules/FindFontconfig.cmake
@@ -17,7 +17,7 @@ if (FONTCONFIG_LIBRARIES AND FONTCONFIG_DEFINITIONS)
set(FONTCONFIG_FOUND TRUE)
else (FONTCONFIG_LIBRARIES AND FONTCONFIG_DEFINITIONS)
-
+IF (NOT WIN32)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
INCLUDE(UsePkgConfig)
@@ -25,7 +25,7 @@ else (FONTCONFIG_LIBRARIES AND FONTCONFIG_DEFINITIONS)
PKGCONFIG(fontconfig _FONTCONFIGIncDir _FONTCONFIGLinkDir _FONTCONFIGLinkFlags _FONTCONFIGCflags)
set(FONTCONFIG_DEFINITIONS ${_FONTCONFIGCflags} CACHE INTERNAL "The compilation flags for fontconfig")
-
+ENDIF (NOT WIN32)
find_path(FONTCONFIG_INCLUDE_DIR fontconfig/fontconfig.h
PATHS
${_FONTCONFIGIncDir}