enh(cmake): Add option POCO_ENABLE_CPP20 to enable C++20 when compiling Poco (#4956)

* enh(cmake): Add option POCO_CXX20 to enable standard C++20 and related changes.

* chore(cmake): do not allow C++20 setting for compilers that do not support it properly.

* fix(NetSSL_Win): indentation.
This commit is contained in:
Matej Kenda
2025-05-28 15:35:28 +02:00
committed by GitHub
parent 5e5e1a60f9
commit 15d987fbb0
12 changed files with 113 additions and 61 deletions

View File

@@ -186,6 +186,8 @@
#endif
#define POCO_HAVE_CPP17_COMPILER (__cplusplus >= 201703L)
#define POCO_HAVE_CPP20_COMPILER (__cplusplus >= 202002L)
#define POCO_HAVE_CPP23_COMPILER (__cplusplus >= 202302L)
// Option to silence deprecation warnings.
#ifndef POCO_SILENCE_DEPRECATED