dbcppp icon indicating copy to clipboard operation
dbcppp copied to clipboard

Compiler silently falls back to older standards

Open 90degs2infty opened this issue 2 years ago • 0 comments

The CMakeLists.txt currently reads (line 9):

set(CMAKE_CXX_STANDARD 17)

When using an old compiler that does not support c++17, CMake will silently fall back to an older standard. This may lead to varying user-experience.

Consider setting CMAKE_CXX_STANDARD_REQUIRED as well as CMAKE_CXX_EXTENSIONS to ensure usage of c++17 (alongside a defined set of compiler extensions).

90degs2infty avatar Jun 20 '23 09:06 90degs2infty