Skip to content

Bump cmake to 3.18 and bump EKAT version to 2.0#424

Merged
bartgol merged 3 commits intomasterfrom
bartgol/release-2.0
Apr 8, 2026
Merged

Bump cmake to 3.18 and bump EKAT version to 2.0#424
bartgol merged 3 commits intomasterfrom
bartgol/release-2.0

Conversation

@bartgol
Copy link
Copy Markdown
Contributor

@bartgol bartgol commented Apr 8, 2026

Motivation

We were still requiring 3.13, which was released in 2018. E3SM already requires cmake 3.18 (released in 2020). Bumping to same version as our main customer seems reasonable. It also allows to remove some conditional cmake code that was meant to support older cmake versions.

Finally, since lots has changed since EKAT initial release (notably, breaking ekat into packages), it's past due that we bump the major version to 2.

@bartgol bartgol self-assigned this Apr 8, 2026
@bartgol bartgol added cmake Related to cmake build system and/or cmake utilities code cleanup labels Apr 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates EKAT’s build requirements and internal versioning to align with newer CMake capabilities and reflect EKAT’s major-version evolution.

Changes:

  • Bumped minimum required CMake version from 3.13 to 3.18 and removed related legacy conditionals.
  • Updated EKAT version to 2.0.0.
  • Simplified TPL FetchContent usage by standardizing on FetchContent_MakeAvailable, and modernized unit-test link directory handling.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
CMakeLists.txt Raises minimum CMake version and updates EKAT version to 2.0.0.
cmake/tpls/EkatBuildYamlCpp.cmake Removes legacy FetchContent path; always uses FetchContent_MakeAvailable.
cmake/tpls/EkatBuildSpdlog.cmake Removes legacy FetchContent path; always uses FetchContent_MakeAvailable.
cmake/tpls/EkatBuildCatch2.cmake Removes legacy FetchContent path; always uses FetchContent_MakeAvailable.
cmake/EkatUtils.cmake Drops version-conditional Fortran compiler-id generator expression handling.
cmake/EkatCreateUnitTest.cmake Replaces directory-wide link_directories with target-scoped target_link_directories.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

jeff-cohere
jeff-cohere previously approved these changes Apr 8, 2026
jgfouca
jgfouca previously approved these changes Apr 8, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bartgol bartgol dismissed stale reviews from jgfouca and jeff-cohere via 064b128 April 8, 2026 17:52
@bartgol bartgol requested a review from jeff-cohere April 8, 2026 19:35
@bartgol bartgol merged commit 1831d20 into master Apr 8, 2026
4 checks passed
@bartgol bartgol deleted the bartgol/release-2.0 branch April 8, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmake Related to cmake build system and/or cmake utilities code cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants