Skip to content

Conversation

@naegelejd
Copy link
Contributor

Adding a minimum required C++ standard of C++17 to the generated C++ object library.

This ensures that -std=c++17 or -std=gnu++17 is added to the build flags when compiling and linking the generated code.

I don't think we need a CI test for this. I manually ran just cpp_version=14, which correctly sets CMAKE_CXX_STANDARD to C++14, but CMake will tell the compiler to use C++17 anyway.

Closes #261.

@naegelejd naegelejd requested a review from johnstairs January 14, 2026 19:05
@naegelejd naegelejd merged commit 31f55e4 into main Jan 14, 2026
14 checks passed
@naegelejd naegelejd deleted the naegelejd/cxx branch January 14, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add target_compile_features(... cxx_std_17) to generated CMakeLists.txt

3 participants