aboutsummaryrefslogtreecommitdiff
path: root/modules/FindTaglib.cmake
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2007-09-24 10:53:59 +0000
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2007-09-24 10:53:59 +0000
commit0e93aecc9d6e8736fa9b2bf0b9a8c6adc30e6337 (patch)
tree29b6d12bd7c97ba9a9e60bc6758a143f7d9bb416 /modules/FindTaglib.cmake
parentf835d46e735a731e38cfcfa39a91a97851123ad6 (diff)
downloadextra-cmake-modules-0e93aecc9d6e8736fa9b2bf0b9a8c6adc30e6337.tar.gz
extra-cmake-modules-0e93aecc9d6e8736fa9b2bf0b9a8c6adc30e6337.tar.bz2
switch to new macro FIND_LIBRARY_EX() to avoid code duplication
svn path=/trunk/KDE/kdelibs/; revision=716254
Diffstat (limited to 'modules/FindTaglib.cmake')
-rw-r--r--modules/FindTaglib.cmake14
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/FindTaglib.cmake b/modules/FindTaglib.cmake
index 1602fe1d..7b5ffc39 100644
--- a/modules/FindTaglib.cmake
+++ b/modules/FindTaglib.cmake
@@ -10,6 +10,8 @@
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+include(FindLibraryEx)
+
IF(NOT WIN32)
FIND_PROGRAM(TAGLIBCONFIG_EXECUTABLE NAMES taglib-config PATHS
/usr/bin
@@ -44,12 +46,12 @@ ELSE(TAGLIBCONFIG_EXECUTABLE)
${INCLUDE_INSTALL_DIR}
)
- FIND_LIBRARY(TAGLIB_LIBRARIES
- NAMES
- tag
- PATHS
- ${KDE4_LIB_DIR}
- ${LIB_INSTALL_DIR}
+ FIND_LIBRARY_EX(TAGLIB_LIBRARIES
+ WIN32_DEBUG_POSTFIX d
+ NAMES tag
+ PATHS
+ ${KDE4_LIB_DIR}
+ ${LIB_INSTALL_DIR}
)
INCLUDE(FindPackageHandleStandardArgs)