Skip to content

Commit

Permalink
Explain how to update the version of metatensor{-torch} we pull from …
Browse files Browse the repository at this point in the history
…github
  • Loading branch information
Luthaf committed Dec 4, 2024
1 parent eb502fd commit c0440da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions featomic-torch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ find_package(Torch 1.12 REQUIRED)
# ============================================================================ #
# Setup metatensor_torch

# METATENSOR_FETCH_VERSION is the exact version we will fetch from github if
# FEATOMIC_TORCH_FETCH_METATENSOR_TORCH=ON, and REQUIRED_METATENSOR_TORCH_VERSION
# is the minimal version we require when using `find_package` to find the library.
#
# When updating METATENSOR_FETCH_VERSION, you will also have to update the
# SHA256 sum of the file in `FetchContent_Declare`.
set(METATENSOR_FETCH_VERSION "0.6.1")
set(REQUIRED_METATENSOR_TORCH_VERSION "0.6")
if (FEATOMIC_TORCH_FETCH_METATENSOR_TORCH)
Expand Down
6 changes: 6 additions & 0 deletions featomic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ endif()
# ============================================================================ #
# Setup metatensor

# METATENSOR_FETCH_VERSION is the exact version we will fetch from github if
# FEATOMIC_FETCH_METATENSOR=ON, and METATENSOR_REQUIRED_VERSION is the minimal
# version we require when using `find_package` to find the library.
#
# When updating METATENSOR_FETCH_VERSION, you will also have to update the
# SHA256 sum of the file in `FetchContent_Declare`.
set(METATENSOR_FETCH_VERSION "0.1.11")
set(METATENSOR_REQUIRED_VERSION "0.1")
if (FEATOMIC_FETCH_METATENSOR)
Expand Down

0 comments on commit c0440da

Please sign in to comment.