Skip to content

Update xtl and xtensor submodules - #2941

Merged
paulromano merged 1 commit into
openmc-dev:developfrom
HunterBelanger:feature/update_submods
Apr 8, 2024
Merged

Update xtl and xtensor submodules#2941
paulromano merged 1 commit into
openmc-dev:developfrom
HunterBelanger:feature/update_submods

Conversation

@HunterBelanger

Copy link
Copy Markdown
Contributor

Description

This PR updates the xtl and xtensor submodules to be the most recent tagged version of each. This change is motivated by #2919, where I found that the versions that we are currently using appear to have a memory bug in Windows. These more recent versions do not seem to pose any issues for me on linux or Windows.

While this PR currently just updates the submodules, it might also be a good time to discuss possibly moving from submodules to FetchContent. This is a new feature which was added to CMake 3.11 (currently we require 3.10+), which allows you to specify git repos in the CMakeLists file, and then CMake will automatically clone them and set them up on build. I personally find it much easier to work with, and it also avoids the problem of initializing the submodules, and updating versions is just a simple change in the CMakeLists.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 15) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

@HunterBelanger HunterBelanger mentioned this pull request Apr 5, 2024
5 tasks
@HunterBelanger HunterBelanger changed the title Update xtl and xtesnor submodules Update xtl and xtensor submodules Apr 5, 2024

@paulromano paulromano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @HunterBelanger! Yes, moving to FetchContent may be a good idea. Let's consider that on a separate issue/PR.

@paulromano
paulromano merged commit 70ba23a into openmc-dev:develop Apr 8, 2024
church89 pushed a commit to openmsr/openmc that referenced this pull request Jul 18, 2024
@HunterBelanger
HunterBelanger deleted the feature/update_submods branch July 18, 2024 13:37
apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
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.

2 participants