]> git.sesse.net Git - kdenlive/blobdiff - src/CMakeLists.txt
Revert "Drop support for KDE 4.3."
[kdenlive] / src / CMakeLists.txt
index cb73bbd6b33376d939fa5177b80fd3998e421799..931ad70478e47286d48e91598cf0c89c3184581b 100644 (file)
@@ -292,10 +292,16 @@ include_directories(
 # to the components requested in find_package().
 include(UseQt4)
 
+if(${KDE_VERSION} VERSION_LESS 4.3.80)
+  set(KDE4_KNEWSTUFF_LIBS ${KDE4_KNEWSTUFF2_LIBS})
+else(${KDE_VERSION} VERSION_LESS 4.3.80)
+  set(KDE4_KNEWSTUFF_LIBS ${KDE4_KNEWSTUFF3_LIBS})
+endif(${KDE_VERSION} VERSION_LESS 4.3.80)
+
 target_link_libraries(kdenlive
   ${KDE4_KDEUI_LIBS}
   ${KDE4_KIO_LIBS}
-  ${KDE4_KNEWSTUFF3_LIBS}
+  ${KDE4_KNEWSTUFF_LIBS}
   ${KDE4_KNOTIFYCONFIG_LIBRARY}
   ${KDE4_KROSSUI_LIBS}
   ${QT_LIBRARIES}