Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-sticky CMake options #1098

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

sethrj
Copy link
Member

@sethrj sethrj commented Feb 2, 2024

When an upstream project sets a local default value for any of the Celeritas options with a predetermined list (RNG, geometry, units, ...) it creates a cache entry with the user-selected value. Previously the default cache entry would be blank, so that the first configure respects the default value but subsequent configures (if the upstream uses a "set default" mechanism) would reset to blank. This fixes the issue by writing the current value as the default cache value.

@sethrj sethrj added core Software engineering infrastructure minor Minor internal changes or fixes labels Feb 2, 2024
Copy link
Contributor

@amandalund amandalund left a comment

Choose a reason for hiding this comment

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

Thanks @sethrj!

@sethrj sethrj enabled auto-merge (squash) February 2, 2024 17:20
@sethrj sethrj merged commit 6e2c092 into celeritas-project:develop Feb 2, 2024
20 of 21 checks passed
@sethrj sethrj deleted the cmake-sticky-options branch February 2, 2024 18:20
sethrj added a commit to sethrj/celeritas that referenced this pull request Feb 5, 2024
sethrj added a commit that referenced this pull request Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Software engineering infrastructure minor Minor internal changes or fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants