Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions docs_src/manuals/introduction/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ lines to your CMake project
URL https://github.com/GridTools/gridtools/archive/<release_tag>.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 *<release_tag>* is the git tag of the |GT| release, e.g. ``v2.0.0``.

Expand Down
7 changes: 1 addition & 6 deletions tests/regression/py_bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
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?

add_subdirectory(${pybind11_SOURCE_DIR} ${pybind11_BINARY_DIR})
endif()
FetchContent_MakeAvailable(pybind11)

pybind11_add_module(py_implementation implementation.cpp)

Expand Down
Loading