RISCSoftware / cpacs_tigl_gen

Generates CPACS schema based classes for TiGL
Apache License 2.0
5 stars 5 forks source link

Enforce C++ 14 compiler #30

Closed rainman110 closed 5 years ago

rainman110 commented 5 years ago

The generator code uses some C++ 14 features. CMakeLists.txt enforces only C++ 11.

Hence, the code will not compile on some machines. To fix this, just enforce C++ 14 in CMakeLists.txt.

bernhardmgruber commented 5 years ago

I believe this might result from some people working with CentOS 7 and relying on the system compiler, which only has partial support for C++14. I do not have such a system, maybe @RlanderRISCSW can check if a CMakelists.txt with CXX_STANDARD 14 still generates successfully.

RlanderRISCSW commented 5 years ago

CMake check for C++14 surprisingly works with gcc 4.8.5 (default on CentOS 7), so we have no problems when enforcing it.