Repository navigation
Update find_package calls in OpenMCConfig.cmake - #3572
Merged
Merged
Conversation
pshriwise
approved these changes
Sep 23, 2025
pshriwise
left a comment
Contributor
There was a problem hiding this comment.
Thanks @paulromano! I like the new approach. We'll keep this in mind for future CMake packaging.
Grego01-biot
pushed a commit
to Grego01-biot/openmc
that referenced
this pull request
Oct 27, 2025
apingegno
pushed a commit
to apingegno/openmc
that referenced
this pull request
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I noticed recently that installs of xtensor/xtl go into a different directory than the one that is indicated by the HINT in OpenMCConfig.cmake.in. Namely, currently it assumes that the xtensor/xtl cmake files get installed in
lib/cmake/xtensorandlib/cmake/xtensor, whereas it is actually getting installed toshare/cmake/xtensorandshare/cmake/xtl. Both of them seem to be common locations for installing*.cmakefiles, so it's hard to say what is "correct". In this PR, I've updated the find_package calls to instead give a HINT to the prefix where OpenMC was installed, which by CMake search rules will include bothlib/cmakeandshare/cmake. It seems we've just been getting lucky in CI because everything is installed to /usr/local, which is found by other means.A few other miscellaneous fixes in this PR:
wwinp_to_wwsin one testChecklist