diff options
author | Laurent Montel <montel@kde.org> | 2008-11-11 12:38:50 +0000 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2008-11-11 12:38:50 +0000 |
commit | d69178fdea07d3f16dd8aa368f28aa20a83d3015 (patch) | |
tree | bacfa71a3086d06ce54426582c22a781d2d9ea82 /modules/FindLibXslt.cmake | |
parent | 7ab5b5f8cb7a33937cc17f73d25713e29048bf8b (diff) | |
download | extra-cmake-modules-d69178fdea07d3f16dd8aa368f28aa20a83d3015.tar.gz extra-cmake-modules-d69178fdea07d3f16dd8aa368f28aa20a83d3015.tar.bz2 |
Port them too
svn path=/trunk/KDE/kdelibs/; revision=882802
Diffstat (limited to 'modules/FindLibXslt.cmake')
-rw-r--r-- | modules/FindLibXslt.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/FindLibXslt.cmake b/modules/FindLibXslt.cmake index 41443d07..76e8f77a 100644 --- a/modules/FindLibXslt.cmake +++ b/modules/FindLibXslt.cmake @@ -21,23 +21,23 @@ ENDIF (LIBXSLT_INCLUDE_DIR AND LIBXSLT_LIBRARIES) 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) - PKGCONFIG(libxslt _LibXsltIncDir _LibXsltLinkDir _LibXsltLinkFlags _LibXsltCflags) - SET(LIBXSLT_DEFINITIONS ${_LibXsltCflags}) + find_package(PkgConfig) + pkg_check_modules(XSLT libxslt) + SET(LIBXSLT_DEFINITIONS ${XSLT_CFLAGS}) ENDIF (NOT WIN32) FIND_PATH(LIBXSLT_INCLUDE_DIR libxslt/xslt.h - ${_LibXsltIncDir} + ${XSLT_INCLUDE_DIRS} ) FIND_LIBRARY(LIBXSLT_LIBRARIES NAMES xslt libxslt PATHS - ${_LibXsltLinkDir} + ${XSLT_LIBRARY_DIRS} ) FIND_LIBRARY(LIBEXSLT_LIBRARIES NAMES exslt libexslt PATHS - ${_LibXsltLinkDir} + ${XSLT_LIBRARY_DIRS} ) IF (LIBXSLT_INCLUDE_DIR AND LIBXSLT_LIBRARIES) |