Skip to content

Remove Deprecated Use of FetchContent_Populate#1825

Open
fthaler wants to merge 3 commits intoGridTools:masterfrom
fthaler:fetchcontent-update
Open

Remove Deprecated Use of FetchContent_Populate#1825
fthaler wants to merge 3 commits intoGridTools:masterfrom
fthaler:fetchcontent-update

Conversation

@fthaler
Copy link
Contributor

@fthaler fthaler commented Feb 18, 2026

No description provided.

@gridtoolsjenkins
Copy link
Collaborator

Hi there, this is jenkins continuous integration...
Do you want me to verify this patch?

FetchContent_GetProperties(pybind11)
if(NOT pybind11_POPULATED)
FetchContent_Populate(pybind11)
set(PYTHON_EXECUTABLE ${Python_EXECUTABLE})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don’t know why this line existed, is it needed for something I’ve overlooked?

Copy link

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

This PR modernizes the project’s FetchContent usage by replacing the deprecated FetchContent_Populate() flow with FetchContent_MakeAvailable(), aligning both build logic and documentation with current CMake practices.

Changes:

  • Update the Python bindings regression test CMake to use FetchContent_MakeAvailable(pybind11).
  • Update the introduction manual’s FetchContent example to use FetchContent_MakeAvailable(GridTools).

Reviewed changes

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

File Description
tests/regression/py_bindings/CMakeLists.txt Switch pybind11 dependency setup to FetchContent_MakeAvailable for non-deprecated FetchContent integration.
docs_src/manuals/introduction/introduction.rst Update FetchContent documentation snippet to use FetchContent_MakeAvailable instead of FetchContent_Populate.

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

3 participants