aboutsummaryrefslogtreecommitdiff
path: root/modules/FindLibXslt.cmake
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2006-04-08 22:43:16 +0000
committerRalf Habacker <ralf.habacker@freenet.de>2006-04-08 22:43:16 +0000
commitcba8933a83c2e96698b85b980438f30385f8420e (patch)
treea419a92b1d833f8396bf1497354d5998528feac5 /modules/FindLibXslt.cmake
parente9e6c0db0f483f2cdbceb69cbb76974189e15cde (diff)
downloadextra-cmake-modules-cba8933a83c2e96698b85b980438f30385f8420e.tar.gz
extra-cmake-modules-cba8933a83c2e96698b85b980438f30385f8420e.tar.bz2
optimized gnuwin32 detection on windows
- find gnuwin32 package location very early - removed GNUWIN32_INCLUDE_DIR/GNUWIN32_LIBRARY_DIR macros, because FindGNUWIN32.cmake sets now CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH - don't use pkgconfig on windows svn path=/trunk/KDE/kdelibs/; revision=527634
Diffstat (limited to 'modules/FindLibXslt.cmake')
-rw-r--r--modules/FindLibXslt.cmake12
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/FindLibXslt.cmake b/modules/FindLibXslt.cmake
index aae6310d..d33fca26 100644
--- a/modules/FindLibXslt.cmake
+++ b/modules/FindLibXslt.cmake
@@ -7,19 +7,13 @@
# LIBXSLT_DEFINITIONS - Compiler switches required for using LibXslt
#
-IF (WIN32)
- FIND_PACKAGE(GNUWIN32)
- SET(_LibXsltIncDir ${GNUWIN32_DIR}/include)
- SET(_LibXsltLinkDir ${GNUWIN32_DIR}/lib)
-ELSE (WIN32)
+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)
-ENDIF (WIN32)
-
-set(LIBXSLT_DEFINITIONS ${_LibXsltCflags})
-
+ set(LIBXSLT_DEFINITIONS ${_LibXsltCflags})
+ENDIF (NOT WIN32)
FIND_PATH(LIBXSLT_INCLUDE_DIR libxslt/xslt.h
${_LibXsltIncDir}