diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f382f1ba..621c5482b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,10 @@ project(kdeconnect VERSION ${RELEASE_SERVICE_VERSION}) set(KF_MIN_VERSION "5.240") set(QT_MIN_VERSION "6.7.0") +set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_CXX_STANDARD_REQUIRED TRUE) + find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)