Commit 86578977 authored by Alex Merry's avatar Alex Merry
Browse files

Fix combined build

KAkonadi has a PUBLIC dependency on KAkonadiServer, but IMPORTED targets
(eg: those from find_package) do not propagate outside the current
directory. Modules that depended on KAkonadi would therefore fail
because the KF5::AkonadiPrivate target was not found.
parent 2fe98c6a
......@@ -33,6 +33,10 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${KAlarmCal_SOURCE_DIR})
find_package(KF5CalendarCore ${KDEPIMLIBS_VERSION} CONFIG REQUIRED)
find_package(KF5IdentityManagement ${KDEPIMLIBS_VERSION} CONFIG REQUIRED)
find_package(KF5Holidays ${KDEPIMLIBS_VERSION} CONFIG REQUIRED)
else()
# IMPORTED targets are scoped, so KF5::AkonadiPrivate found in ../akonadi
# won't work here, and it is a PUBLIC dependency of KF5::Akonadi
find_package(KF5AkonadiServer ${KF5AkonadiServer_MIN_VERSION} CONFIG REQUIRED)
endif()
add_definitions(-DTRANSLATION_DOMAIN=\"libkalarmcal5\")
......
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