┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2007-05-02 10:02:19 +0000
committerDavid Faure <[email protected]>2007-05-02 10:02:19 +0000
commit919071ae88bf7583dde8b48b2a91adb6b5d0d611 (patch)
tree20ba20032926f629e88704702d8b96747d44ea96
parent5aa8b5ca9761864e61a3d002266ae8859ab3b368 (diff)
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
-rw-r--r--src/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
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})