Changeset View
Changeset View
Standalone View
Standalone View
agents/unifiedmailboxagent/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_unifiedmailbox_agent\") | 1 | add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_unifiedmailbox_agent\") | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | set(CMAKE_CXX_STANDARD 14) | 3 | set(CMAKE_CXX_STANDARD 17) | ||
dvratil: If even FreeBSD supports C++17 out of the box these days, I wonder if we can switch to 17… | |||||
4 | 4 | | |||
5 | if(BUILD_TESTING) | 5 | if(BUILD_TESTING) | ||
6 | add_subdirectory(autotests) | 6 | add_subdirectory(autotests) | ||
7 | endif() | 7 | endif() | ||
8 | 8 | | |||
9 | 9 | | |||
10 | set(unifiedmailbox_agent_SRCS | 10 | set(unifiedmailbox_agent_SRCS | ||
11 | unifiedmailbox.cpp | 11 | unifiedmailbox.cpp | ||
Show All 40 Lines |
If even FreeBSD supports C++17 out of the box these days, I wonder if we can switch to 17 everywhere, or if we still need to support some ancient distros...in any case, for now, please stick to C++14.
Setting it to C++17 also triggers the auto_ptr error in Akonadi, since auto_ptr has been removed in C++17, but is present in 14. Current Akonadi master does have a fix for that , however (and couple others).