Skip to content

Fixes missing symbols in featomic when using fetch_metatensor#425

Closed
MilitaoLucas wants to merge 2 commits intometatensor:mainfrom
MilitaoLucas:fix-fetchmetatensor
Closed

Fixes missing symbols in featomic when using fetch_metatensor#425
MilitaoLucas wants to merge 2 commits intometatensor:mainfrom
MilitaoLucas:fix-fetchmetatensor

Conversation

@MilitaoLucas
Copy link
Copy Markdown
Contributor

@MilitaoLucas MilitaoLucas commented Mar 3, 2026

This was found and fixed by @RealUranar.

Copilot AI review requested due to automatic review settings March 3, 2026 21:24
@MilitaoLucas MilitaoLucas changed the title Fixes missing symbols in featomic when using older metatensor... Fixes missing symbols in featomic when using fetch_metatensor Mar 3, 2026
Copy link
Copy Markdown

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 updates the vendored (FetchContent) metatensor-core version used by featomic’s CMake build, aiming to address missing-symbol issues tied to the fetched metatensor version.

Changes:

  • Bump METATENSOR_FETCH_VERSION from 0.1.17 to 0.1.19
  • Update the corresponding FetchContent_Declare(... URL_HASH ...) SHA256

Comment thread featomic/CMakeLists.txt
Comment on lines +249 to 250
set(METATENSOR_FETCH_VERSION "0.1.19")
set(METATENSOR_REQUIRED_VERSION "0.1")
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

The PR title/description suggests fixing missing symbols when using older metatensor versions, but this change only bumps the version used when FEATOMIC_FETCH_METATENSOR=ON. If the missing-symbol issue also affects builds using find_package(metatensor ...) (i.e., system-provided metatensor), this won’t prevent selecting an older incompatible metatensor since METATENSOR_REQUIRED_VERSION is still just "0.1". Please clarify the scope in the PR description, or bump METATENSOR_REQUIRED_VERSION to the first known-good version so incompatible metatensor versions fail at configure time instead of at link/load time.

Copilot uses AI. Check for mistakes.
@Luthaf
Copy link
Copy Markdown
Member

Luthaf commented Mar 5, 2026

Thanks for the PR, this looks good. CI is broken for a different reason, I'm fixing it and then I'll merge this!

@MilitaoLucas
Copy link
Copy Markdown
Contributor Author

Thanks for the PR, this looks good. CI is broken for a different reason, I'm fixing it and then I'll merge this!

I figured. That is fine. Thanks!

@Luthaf
Copy link
Copy Markdown
Member

Luthaf commented Mar 9, 2026

I've included the fix from this PR directly in #426

@Luthaf Luthaf closed this Mar 9, 2026
@MilitaoLucas
Copy link
Copy Markdown
Contributor Author

That is fine. Thanks.

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