Commit 6be8b06a authored by Jonathan Marten's avatar Jonathan Marten

Fix build if taglib is not available

If the taglib-config executable is not available, cmake/FindTaglib.cmake
searches directly for the libraries using find_library_with_debug().
This function is only available with KDELibs4Support;  however, on all
platforms apart from Win32 it is equivalent to find_library().  Just use
the latter directly.

CCMAIL:	jr@jriddell.org, elvis.angelaccio@kde.org
parent b0b12086
......@@ -66,7 +66,6 @@ if(TAGLIBCONFIG_EXECUTABLE)
else(TAGLIBCONFIG_EXECUTABLE)
include(FindLibraryWithDebug)
include(FindPackageHandleStandardArgs)
find_path(TAGLIB_INCLUDES
......@@ -74,15 +73,16 @@ else(TAGLIBCONFIG_EXECUTABLE)
tag.h
PATH_SUFFIXES taglib
PATHS
${KDE4_INCLUDE_DIR}
${INCLUDE_INSTALL_DIR}
)
find_library_with_debug(TAGLIB_LIBRARIES
WIN32_DEBUG_POSTFIX d
# TODO: this originally used find_library_with_debug(),
# which is only available with KDELibs4Support, with
# arguments "WIN32_DEBUG_POSTFIX d". It is equivalent
# to find_library on all platforms other than Win32.
find_library(TAGLIB_LIBRARIES
NAMES tag
PATHS
${KDE4_LIB_DIR}
${LIB_INSTALL_DIR}
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment