xR3b0rn / dbcppp

C/C++ DBC file parser/tool
MIT License
225 stars 73 forks source link

Compiler silently falls back to older standards #137

Open 90degs2infty opened 1 year ago

90degs2infty commented 1 year ago

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).