diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,8 @@ set(PROJECT_VERSION "1.2.1") cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) -set(QT_MIN_VERSION "5.2.0") -set(KF5_MIN_VERSION "5.1.0") +set(QT_MIN_VERSION "5.7.0") +set(KF5_MIN_VERSION "5.37.0") # Silence a warning cmake_policy(SET CMP0037 OLD) diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -18,7 +18,8 @@ Dependencies ------------ -* Qt >= 5.2 +* Qt >= 5.7 +* KF5 >= 5.37 * KF5Auth * KF5ConfigWidgets * KF5CoreAddons @@ -28,7 +29,7 @@ * KF5WidgetsAddons * Systemd -For compilers not supporting C++11, Boost >= 1.45 is needed as well. +KF5 >= 5.37 depends on Qt >= 5.7, which requires C++11 compiler support. Execution diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -13,12 +13,6 @@ include (CheckCxxFeatures) cxx_check_feature ("c++11" "std-chrono" "none" HAVE_CXX11_CHRONO "${ADDITIONAL_DEFINITIONS}") -# Fall back to boost::chrono if std::chrono feature detection failed -if (NOT HAVE_CXX11_CHRONO) - message (WARNING "Your C++ compiler does not support std::chrono properly, using boost::chrono instead.") - find_package(Boost 1.45.0 COMPONENTS chrono system REQUIRED) -endif () - configure_file (kcm-systemd-features.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/kcm-systemd-features.h) include_directories (${CMAKE_CURRENT_BINARY_DIR}/src) @@ -34,7 +28,6 @@ KF5::I18n KF5::KIOCore KF5::WidgetsAddons - ${Boost_LIBRARIES} ${JOURNALD_LIBRARIES}) install(TARGETS kcm_systemd DESTINATION ${CMAKE_INSTALL_PLUGINDIR}) diff --git a/src/confoption.h b/src/confoption.h --- a/src/confoption.h +++ b/src/confoption.h @@ -22,19 +22,11 @@ #include #include "kcm-systemd-features.h" -#if defined(HAVE_CXX11_CHRONO) #include #include namespace ratio = std; namespace chrono = std::chrono; -#else -#include -#include - -namespace ratio = boost; -namespace chrono = boost::chrono; -#endif enum settingType {