Commit 5a2eb383 authored by Ingo Klöcker's avatar Ingo Klöcker Committed by Ingo Klöcker
Browse files

Require C++20

We are well in 2022, so let's switch to C++20. I'm constantly trying
to write code that feels natural to me, only to discover "since C++20"
when I check why it doesn't work. And I'm not even talking about the
huge new features. Just those little improvements of the already existing
standard libraries.
parent 3f8e20aa
Pipeline #191915 passed with stage
in 2 minutes and 55 seconds
......@@ -46,6 +46,9 @@ else ()
set(KMIME_WANT_VERSION ${KMIME_VERSION})
endif ()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(ECM ${KF5_WANT_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
......
Supports Markdown
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