aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSebastian Sauer <mail@dipe.org>2006-10-21 00:55:03 +0000
committerSebastian Sauer <mail@dipe.org>2006-10-21 00:55:03 +0000
commit5ee682a9f2a5fd346ef8ec7f3bb7292103ecb843 (patch)
treebf02dda829b6ca44c20b28573c6410291faa7ac0 /modules
parent93228fbd4ad1712926c690564b39bc7cb9aa2b81 (diff)
downloadextra-cmake-modules-5ee682a9f2a5fd346ef8ec7f3bb7292103ecb843.tar.gz
extra-cmake-modules-5ee682a9f2a5fd346ef8ec7f3bb7292103ecb843.tar.bz2
* added ${KDEWIN32_LIBRARY_PATH}
* use find_library Now linking fails cause of the on win32 missing dbus libs... svn path=/trunk/KDE/kdelibs/; revision=597618
Diffstat (limited to 'modules')
-rw-r--r--modules/FindKDE4Internal.cmake16
-rw-r--r--modules/FindKDEWIN32.cmake3
2 files changed, 10 insertions, 9 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index 263afe30..503e7fa8 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -517,32 +517,32 @@ if (WIN32)
# windows, mingw
if(MINGW)
- #TODO use find_library + move such things either to FindKDEWIN32.cmake since it works with
+ #TODO move such things either to FindKDEWIN32.cmake since it works with
#the kdewin32-package only anyway or have it direct with the Find*.cmake files (what could
#provide a problem for e.g. FindJPEG.cmake since I am pretty sure cmake.org does not like
#to take over our propably temporary workarounds).
# FindZLIB.cmake
set(ZLIB_INCLUDE_DIR ${KDEWIN32_INCLUDES})
- set(ZLIB_LIBRARY "${KDEWIN32_LIBRARIES}/zlib.lib")
+ find_library(ZLIB_LIBRARY NAMES zlib PATHS ${KDEWIN32_LIBRARY_PATH})
# FindPCRE.cmake
set(PCRE_INCLUDE_DIR ${KDEWIN32_INCLUDES})
- set(PCRE_LIBRARIES "${KDEWIN32_LIBRARIES}/pcre.lib")
+ find_library(PCRE_LIBRARIES NAMES pcre PATHS ${KDEWIN32_LIBRARY_PATH})
# FindLibXml2.cmake
set(LIBXML2_INCLUDE_DIR ${KDEWIN32_INCLUDES})
- set(LIBXML2_LIBRARIES "${KDEWIN32_LIBRARIES}/libxml2.lib")
+ find_library(LIBXML2_LIBRARIES NAMES libxml2 PATHS ${KDEWIN32_LIBRARY_PATH})
# FindLibXslt.cmake
set(LIBXSLT_INCLUDE_DIR ${KDEWIN32_INCLUDES})
- set(LIBXSLT_LIBRARIES "${KDEWIN32_LIBRARIES}/libxslt.lib")
+ find_library(LIBXSLT_LIBRARIES NAMES libxslt PATHS ${KDEWIN32_LIBRARY_PATH})
# FindJPEG.cmake
set(JPEG_INCLUDE_DIR ${KDEWIN32_INCLUDES})
- set(JPEG_LIBRARY "${KDEWIN32_LIBRARIES}/jpeg.lib")
+ find_library(JPEG_LIBRARY NAMES jpeg PATHS ${KDEWIN32_LIBRARY_PATH})
# FindGIF.cmake
set(GIF_INCLUDE_DIR ${KDEWIN32_INCLUDES})
- set(GIF_LIBRARIES "${KDEWIN32_LIBRARIES}/giflib.lib")
+ find_library(GIF_LIBRARIES NAMES giflib PATHS ${KDEWIN32_LIBRARY_PATH})
# FindPNG.cmake
set(PNG_PNG_INCLUDE_DIR ${KDEWIN32_INCLUDES})
- set(PNG_LIBRARY "${KDEWIN32_LIBRARIES}/libpng.lib")
+ find_library(PNG_LIBRARY NAMES libpng PATHS ${KDEWIN32_LIBRARY_PATH})
endif(MINGW)
# windows, microsoft compiler
diff --git a/modules/FindKDEWIN32.cmake b/modules/FindKDEWIN32.cmake
index d5a5eee6..479df392 100644
--- a/modules/FindKDEWIN32.cmake
+++ b/modules/FindKDEWIN32.cmake
@@ -27,9 +27,10 @@ find_path(KDEWIN32_INCLUDE_DIR winposix_export.h
# at first find the kdewin32 library, this has to be compiled and installed before kdelibs/
# search for kdewin32 in the default install directory for applications (default of (n)make install)
+set(KDEWIN32_LIBRARY_PATH ${_program_FILES_DIR}/kdewin32/lib)
find_library(KDEWIN32_LIBRARY_RELEASE NAMES kdewin32
PATHS
- ${_program_FILES_DIR}/kdewin32/lib
+ ${KDEWIN32_LIBRARY_PATH}
)
# msvc makes a difference between debug and release