From 196c702d798d005c9911a31f04d91c1f5f5353b9 Mon Sep 17 00:00:00 2001 From: Felix Thaler Date: Wed, 18 Feb 2026 11:37:16 +0100 Subject: [PATCH 1/2] Remove deprecated use of FetchContent_Populate --- docs_src/manuals/introduction/introduction.rst | 5 +---- tests/regression/py_bindings/CMakeLists.txt | 7 +------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/docs_src/manuals/introduction/introduction.rst b/docs_src/manuals/introduction/introduction.rst index cf0bd8c3d..c88c66edc 100644 --- a/docs_src/manuals/introduction/introduction.rst +++ b/docs_src/manuals/introduction/introduction.rst @@ -142,10 +142,7 @@ lines to your CMake project URL https://github.com/GridTools/gridtools/archive/.tar.gz ) FetchContent_GetProperties(GridTools) - if(NOT GridTools_POPULATED) - FetchContent_Populate(GridTools) - add_subdirectory(${gridtools_SOURCE_DIR} ${gridtools_BINARY_DIR}) - endif() + FetchContent_MakeAvailable(GridTools) where ** is the git tag of the |GT| release, e.g. ``v2.0.0``. diff --git a/tests/regression/py_bindings/CMakeLists.txt b/tests/regression/py_bindings/CMakeLists.txt index c2187ff2d..6234be7af 100644 --- a/tests/regression/py_bindings/CMakeLists.txt +++ b/tests/regression/py_bindings/CMakeLists.txt @@ -12,12 +12,7 @@ FetchContent_Declare( GIT_TAG v2.10.0 ) -FetchContent_GetProperties(pybind11) -if(NOT pybind11_POPULATED) - FetchContent_Populate(pybind11) - set(PYTHON_EXECUTABLE ${Python_EXECUTABLE}) - add_subdirectory(${pybind11_SOURCE_DIR} ${pybind11_BINARY_DIR}) -endif() +FetchContent_MakeAvailable(pybind11) pybind11_add_module(py_implementation implementation.cpp) From cc1b1dfc7e03f644fa34dcab85526d50d57c7153 Mon Sep 17 00:00:00 2001 From: Felix Thaler Date: Mon, 2 Mar 2026 14:48:39 +0100 Subject: [PATCH 2/2] Remove unneeded FetchoContent_GetProperties Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs_src/manuals/introduction/introduction.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs_src/manuals/introduction/introduction.rst b/docs_src/manuals/introduction/introduction.rst index c88c66edc..688803355 100644 --- a/docs_src/manuals/introduction/introduction.rst +++ b/docs_src/manuals/introduction/introduction.rst @@ -141,7 +141,6 @@ lines to your CMake project FetchContent_Declare(GridTools URL https://github.com/GridTools/gridtools/archive/.tar.gz ) - FetchContent_GetProperties(GridTools) FetchContent_MakeAvailable(GridTools) where ** is the git tag of the |GT| release, e.g. ``v2.0.0``.