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 23b82a77 authored by Christophe Giboudeaux's avatar Christophe Giboudeaux

Cleanup. Add todo.

parent 8e78cd74
......@@ -9,6 +9,12 @@ set(KF5_VERSION "5.39.0")
find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${KLdap_SOURCE_DIR}/cmake ${ECM_MODULE_PATH})
# TODO: Remove the cmake/deprecated directory when we'll require ECM >= 5.41.0
if("${ECM_VERSION}" VERSION_LESS "5.41.0")
set(CMAKE_MODULE_PATH ${KLdap_SOURCE_DIR}/cmake/deprecated)
add_subdirectory(cmake/deprecated)
endif()
include(GenerateExportHeader)
include(ECMGenerateHeaders)
include(ECMGeneratePriFile)
......
install(FILES
FindLdap.cmake
FindSasl2.cmake
DESTINATION ${CMAKECONFIG_INSTALL_DIR}
)
install(FILES
FindSasl2.cmake
DESTINATION ${CMAKECONFIG_INSTALL_DIR}
)
......@@ -25,7 +25,7 @@ if(Ldap_FOUND)
endif()
if(Sasl2_FOUND)
set(kldap_EXTRA_LIBS ${kldap_EXTRA_LIBS} ${Sasl2_LIBRARIES})
set(kldap_EXTRA_LIBS ${kldap_EXTRA_LIBS} Sasl2::Sasl2)
endif()
configure_file(kldap_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kldap_config.h)
......@@ -81,7 +81,6 @@ set_target_properties(KF5Ldap PROPERTIES
EXPORT_NAME Ldap
)
install(TARGETS KF5Ldap EXPORT KF5LdapTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
......
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