Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 91085887 authored by Christophe Giboudeaux's avatar Christophe Giboudeaux

Use FindSasl2.cmake from ECM if available.

parent cd35df71
......@@ -7,7 +7,12 @@ project(MailTransport VERSION ${PIM_VERSION})
set(KF5_VERSION "5.39.0")
find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${MailTransport_SOURCE_DIR}/cmake ${ECM_MODULE_PATH})
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
# TODO: Remove the cmake directory when we'll require ECM >= 5.41.0
if("${ECM_VERSION}" VERSION_LESS "5.41.0")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${MailTransport_SOURCE_DIR}/cmake)
endif()
include(GenerateExportHeader)
include(ECMGenerateHeaders)
......@@ -62,7 +67,9 @@ if(BUILD_TESTING)
endif(BUILD_TESTING)
########### Targets ###########
if("${ECM_VERSION}" VERSION_LESS "5.41.0")
add_subdirectory(cmake)
endif()
add_subdirectory(src)
install( FILES kmailtransport.renamecategories kmailtransport.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
......
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