File 0003-BKO413701.patch of Package digikam

diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index 24187beaa3da31bcf64ad5aa7c9b5f2a8c52c21d..4a0ee5f1563f2d20c852dd5b3a3d38aef903a35c 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -211,7 +211,7 @@ if ("${KF5CalendarCore_VERSION}" VERSION_GREATER 5.6.40)
     set(HAVE_KCALENDAR_QDATETIME TRUE)
 endif()
 
-if(ENABLE_AKONADICONTACTSUPPORT AND NOT KF5AkonadiContact_FOUND)
+if(ENABLE_AKONADICONTACTSUPPORT AND (NOT KF5AkonadiContact_FOUND OR NOT KF5Contacts_FOUND))
     set(ENABLE_AKONADICONTACTSUPPORT OFF)
 endif()