Commit b37cbc25 authored by Christophe Giboudeaux's avatar Christophe Giboudeaux

Sasl2 is now required.

parent 7d2fdc9a
remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
set(pop3_optional_includes)
set(pop3_optional_libs)
if(Sasl2_FOUND)
set(pop3_optional_libs ${pop3_optional_libs} Sasl2::Sasl2)
set(HAVE_LIBSASL2 1)
else()
set(HAVE_LIBSASL2 0)
endif()
configure_file(pop3-config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/pop3-config.h )
########### next target ###############
......@@ -22,7 +11,7 @@ ecm_qt_declare_logging_category(kio_pop3_PART_SRCS HEADER pop3_debug.h IDENTIFIE
add_library(kio_pop3 MODULE ${kio_pop3_PART_SRCS})
target_link_libraries(kio_pop3 KF5::KIOCore ${pop3_optional_libs} KF5::I18n )
target_link_libraries(kio_pop3 KF5::KIOCore KF5::I18n Sasl2::Sasl2)
set_target_properties(kio_pop3 PROPERTIES OUTPUT_NAME "pop3")
install(TARGETS kio_pop3 DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio/ )
......
/* pop3-config.h. Generated by cmake from pop3-config.h.cmake */
/* Define if you have cyrus-sasl2 libraries */
#cmakedefine HAVE_LIBSASL2 1
/* Define to 1 if you have the <sys/select.h> header file. */
#cmakedefine HAVE_SYS_SELECT_H 1
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