Skip to content

Adjust CMake minimal version #4709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 1, 2025
Merged

Adjust CMake minimal version #4709

merged 8 commits into from
Apr 1, 2025

Conversation

nlohmann
Copy link
Owner

@nlohmann nlohmann commented Mar 29, 2025

  • Use CMake 4.0.0 in the CI.
  • Change the CMake version range for the project from
    cmake_minimum_required(VERSION 3.1...3.14)
    to
    cmake_minimum_required(VERSION 3.5...4.0)
  • Adjust the ci_cmake_flags CI target to use the following CMake versions:
    • CMake 3.5 (the earliest supported)
    • CMake 3.31.6 (the latest 3.x release)
    • CMake 4.0.0 (the latest release)
  • Adjust all test CMake files to use 3.5 as minimal versions
  • Adjust documentation accordingly
  • Off-topic: Added Microsoft Teams to list of customers

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
@coveralls
Copy link

coveralls commented Mar 29, 2025

Coverage Status

coverage: 99.186%. remained the same
when pulling 255921c on cmake-min-version
into 3a57039 on develop.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
@github-actions github-actions bot added the tests label Mar 29, 2025
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
@nlohmann nlohmann marked this pull request as ready for review March 31, 2025 15:08
@nlohmann nlohmann added this to the Release 3.11.4 milestone Mar 31, 2025
@nlohmann nlohmann added the review needed It would be great if someone could review the proposed changes. label Mar 31, 2025
@nlohmann nlohmann merged commit d41ca94 into develop Apr 1, 2025
132 checks passed
@nlohmann nlohmann deleted the cmake-min-version branch April 1, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI CMake documentation M review needed It would be great if someone could review the proposed changes. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants