Skip to content

unify cmake_minimum_required versions and allow 4.0#260

Merged
cgmb merged 1 commit intoROCm:developfrom
LunNova:lunnova/unify-cmake-version-requirements
Sep 23, 2025
Merged

unify cmake_minimum_required versions and allow 4.0#260
cgmb merged 1 commit intoROCm:developfrom
LunNova:lunnova/unify-cmake-version-requirements

Conversation

@LunNova
Copy link
Contributor

@LunNova LunNova commented Sep 18, 2025

Fixes #259

cc @amd-jnovotny @bcornille

Motivation

Building with CMake 4 should work.

Technical Details

#222 attempted to implement compatibility with newer CMake versions by bumping the minimum required version, however the cmake_minimum_required calls in subdirs that are intended to support standalone builds were missed.

Unifying these and allowing 4.0 as I've tested that policy version works.

Test Plan

Rebuild of nixpkgs ROCm package set atop CMake 4.

Test Result

hipfort builds successfully

Submission Checklist

ROCm#222 attempted to implement compatibility with newer CMake versions
by bumping the minimum required version, however the
cmake_minimum_required calls in subdirs that are intended
to support standalone builds were missed.

Unifying these and allowing 4.0 as I've tested that policy version works.

Fixes ROCm#259
@LunNova LunNova requested a review from cgmb as a code owner September 18, 2025 18:58
@LunNova
Copy link
Contributor Author

LunNova commented Sep 18, 2025

CI seems to be broken, unrelated to this PR. Seeing the same Mfree error as #256 (comment)

@amd-jnovotny
Copy link
Contributor

Thanks @LunNova ... I think that @cgmb should review this one, so I'll leave it to him. He's already on the reviewers list.

Copy link
Collaborator

@cgmb cgmb left a comment

Choose a reason for hiding this comment

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

Thanks!

@cgmb cgmb merged commit f853dc5 into ROCm:develop Sep 23, 2025
1 of 4 checks passed
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.

[Issue]: Incompatible with CMake 4

3 participants