Skip to content

CMake remove noop policies - #6586

Open
scivision wants to merge 2 commits into
HDFGroup:developfrom
scivision:policy-noop
Open

CMake remove noop policies#6586
scivision wants to merge 2 commits into
HDFGroup:developfrom
scivision:policy-noop

Conversation

@scivision

Copy link
Copy Markdown
Contributor

These are made no-ops by the cmake_minimum_required(VERSION 3.26)

  • CMP0074 by CMake 3.12
  • CMP0077 by CMake 3.13
  • CMP0083 by CMake 3.14
  • CMP0127 by CMake 3.22
  • CMP0135 by CMake 3.24

No behavior changes.

Copilot AI review requested due to automatic review settings July 31, 2026 17:00
@github-project-automation github-project-automation Bot moved this to To be triaged in HDF5 - TRIAGE & TRACK Jul 31, 2026
@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Review Checklist

This PR touches the following areas. Each needs a sign-off
from its listed owners before merging.

✅ All areas have been signed off.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR removes explicit CMake policy settings that are expected to be redundant when configuring HDF5 with cmake_minimum_required(VERSION 3.26), with the stated goal of producing no behavior changes while simplifying the build configuration.

Changes:

  • Removed explicit cmake_policy(SET ...) blocks for several older policies in the top-level CMakeLists.txt.
  • Removed the CMAKE_POLICY_DEFAULT_CMP0077 default in the plugin FetchContent integration.

Reviewed changes

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

File Description
CMakePlugins.cmake Simplifies FetchContent-based plugin configuration by removing a CMP0077 default (potentially behavior-affecting for subprojects).
CMakeLists.txt Removes policy-setting blocks considered redundant under CMake 3.26+ and clarifies CMP0144 comment for CMake 3.27+.

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

Comment thread CMakePlugins.cmake
These are made no-ops by the cmake_minimum_required(VERSION 3.26)

* CMP0074 by CMake 3.12
* CMP0077 by CMake 3.13
* CMP0083 by CMake 3.14
* CMP0127 by CMake 3.22
* CMP0135 by CMake 3.24
@github-actions
github-actions Bot requested a review from lrknox August 5, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To be triaged

Development

Successfully merging this pull request may close these issues.

5 participants