From: David Faure Date: Wed, 2 May 2007 10:02:19 +0000 (+0000) Subject: If it's not always compiled, then we need to check it before we add it to the link... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/919071ae88bf7583dde8b48b2a91adb6b5d0d611 If it's not always compiled, then we need to check it before we add it to the link line... svn path=/trunk/KDE/kdebase/apps/; revision=660323 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5d51552a8..123eed3ac 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -87,7 +87,11 @@ find_package(KMetaData) macro_bool_to_01(KMetaData_FOUND HAVE_KMETADATA) configure_file(config-kmetadata.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kmetadata.h ) -target_link_libraries(dolphin ${KDE4_KDECORE_LIBS} ${KDE4_KDEPRINT_LIBS} ${KDE4_KFILE_LIBS} ${KMETADATA_LIBRARIES} konq dolphinprivate) +target_link_libraries(dolphin ${KDE4_KDECORE_LIBS} ${KDE4_KDEPRINT_LIBS} ${KDE4_KFILE_LIBS} konq dolphinprivate) + +if (KMetaData_FOUND) + target_link_libraries(dolphin ${KMETADATA_LIBRARIES}) +endif (KMetaData_FOUND) install(TARGETS dolphin DESTINATION ${BIN_INSTALL_DIR})