Use absolute paths to subdirectories#27
Merged
Cameron Bateman (cameronbateman-mo) merged 1 commit intoMay 12, 2026
Merged
Conversation
Cameron Bateman (cameronbateman-mo)
approved these changes
May 12, 2026
Cameron Bateman (cameronbateman-mo)
left a comment
There was a problem hiding this comment.
Good changes, approved.
8ea9961
into
MetOffice:main
7 checks passed
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.
PR Summary
Code Reviewer: Cameron Bateman (@cameronbateman-mo)
Change the shumlib CMake macros to use full paths via the built in
CMAKE_CURRENT_SOURCE_DIRvariable. This is needed to avoid problems with spack, which seems to runcmakefrom directory other than the base of the shumlib clone - at least when running from a version cloned directly from github.These changes have been tested interactively from within a clone of the shumlib repository and using spack.
Code Quality Checklist
(Some checks are automatically carried out via the CI pipeline)
Comments have been included that aid undertanding and enhance thereadability of the code
Testing
I have tested this change locally, using the rose-stem suiteIf any tests fail (rose-stem or CI) the reason is understood andacceptable (eg. kgo changes)
I have added tests to cover new functionality as appropriate (eg. systemtests, unit tests, etc.)
Interactive Build
Spack Build
Security Considerations
Sensitive data is properly handled (if applicable)Authentication and authorisation are properly implemented (if applicable)Performance Impact
Performance of the code has been considered and, if applicable, suitableperformance measurements have been conducted
AI Assistance and Attribution
Some of the content of this change has been produced with the assistanceof Generative AI tool name (e.g., Met Office Github Copilot Enterprise,
Github Copilot Personal, ChatGPT GPT-4, etc) and I have followed the
Simulation Systems AI policy(including attribution labels)
Documentation
Where appropriate I have updated documentation related to this change andconfirmed that it builds correctly
Code Review