diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-02-12 14:38:04 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-02-12 14:38:04 +0000 |
commit | 75a07dd38b4a491a9d16d24492bea5c6ba90a8ff (patch) | |
tree | 0a65094e22bba335545b8ffe4a33fe7790edb21c /modules/FindLibXslt.cmake | |
parent | bce40e0de3b22a291ecaa2b75358e6a998e1579b (diff) | |
download | extra-cmake-modules-75a07dd38b4a491a9d16d24492bea5c6ba90a8ff.tar.gz extra-cmake-modules-75a07dd38b4a491a9d16d24492bea5c6ba90a8ff.tar.bz2 |
-moved the cmake code to find kdewin32 out of FindKDE4.cmake and into its own FindKDEWIN32.cmake file
-added a new FindGNUWIN32.cmake file, which tries to find the gnuwin32 base directory
-changed all "FOO_LIBRARY" variable names to "FOO_LIBRARIES" to be more consistent with the other cmake modules
-added a macro_getenv_win_path() which replaces all backslahes with slashes from environment variables
-modified the kde4_add_kcfg_files() command, so that the generated header is also processed by moc
-all tests compile and link
Alex
CCMAIL:kde-buildsystem@kde.org
The changes to the windows stuff are untested, since I don't have a windows box.
Please check that everything still works. Please have a look at FindGNUWIN32.cmake,
there are probably ways to improve this. The resulting GNUWIN32_DIR variable is used in other
cmake modules as default path to search for headers and libraries.
svn path=/trunk/KDE/kdelibs/; revision=508648
Diffstat (limited to 'modules/FindLibXslt.cmake')
-rw-r--r-- | modules/FindLibXslt.cmake | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/FindLibXslt.cmake b/modules/FindLibXslt.cmake index 6f120cbb..0df7e855 100644 --- a/modules/FindLibXslt.cmake +++ b/modules/FindLibXslt.cmake @@ -3,7 +3,7 @@ # # LIBXSLT_FOUND - system has LibXslt # LIBXSLT_INCLUDE_DIR - the LibXslt include directory -# LIBXSLT_LIBRARY - Link these to use OpenGL and GLU +# LIBXSLT_LIBRARIES - Link these to LibXslt # LIBXSLT_DEFINITIONS - Compiler switches required for using LibXslt # @@ -22,20 +22,20 @@ FIND_PATH(LIBXSLT_INCLUDE_DIR libxslt/xslt.h /usr/local/include ) -FIND_LIBRARY(LIBXSLT_LIBRARY NAMES xslt libxslt +FIND_LIBRARY(LIBXSLT_LIBRARIES NAMES xslt libxslt PATHS ${_LibXsltLinkDir} /usr/lib /usr/local/lib ) -IF(LIBXSLT_INCLUDE_DIR AND LIBXSLT_LIBRARY) +IF(LIBXSLT_INCLUDE_DIR AND LIBXSLT_LIBRARIES) SET(LIBXSLT_FOUND TRUE) -ENDIF(LIBXSLT_INCLUDE_DIR AND LIBXSLT_LIBRARY) +ENDIF(LIBXSLT_INCLUDE_DIR AND LIBXSLT_LIBRARIES) IF(LIBXSLT_FOUND) IF(NOT LibXslt_FIND_QUIETLY) - MESSAGE(STATUS "Found LibXslt: ${LIBXSLT_LIBRARY}") + MESSAGE(STATUS "Found LibXslt: ${LIBXSLT_LIBRARIES}") ENDIF(NOT LibXslt_FIND_QUIETLY) ELSE(LIBXSLT_FOUND) IF(LibXslt_FIND_REQUIRED) @@ -43,3 +43,5 @@ ELSE(LIBXSLT_FOUND) ENDIF(LibXslt_FIND_REQUIRED) ENDIF(LIBXSLT_FOUND) +MARK_AS_ADVANCED(LIBXSLT_INCLUDE_DIR LIBXSLT_LIBRARIES) + |