Skip to content

Require C++17 consistently#725

Merged
quickfix merged 2 commits into
quickfix:masterfrom
sweemer:cxx-17
May 20, 2026
Merged

Require C++17 consistently#725
quickfix merged 2 commits into
quickfix:masterfrom
sweemer:cxx-17

Conversation

@sweemer

@sweemer sweemer commented May 15, 2026

Copy link
Copy Markdown
Contributor

The README already lists a C++17-compatible compiler as a prerequisite, but the build system did not actually enforce this in a consistent way.

Changes:

  • Set CMAKE_CXX_STANDARD_REQUIRED=ON to fail fast instead of silently degrading to a lower version.
  • Set target_compile_features on the library target from cxx_std_11 to cxx_std_17 for consistency.
  • Remove the unnecessary HAVE_CXX17 cmake option and usages in the code.

Unrelated to those changes, I have bumped the minimum CMake version to 3.12 for consistency with FindODBC, which was added in that version.

@quickfix quickfix merged commit 2f230d9 into quickfix:master May 20, 2026
17 checks passed
@sweemer sweemer deleted the cxx-17 branch May 20, 2026 22:46
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.

2 participants