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

Kommon: Bake KConst epoch into header file #75

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

2xB
Copy link
Member

@2xB 2xB commented Sep 25, 2023

When using Kassiopeia as an external library, as described in #72 there were compilation issues observed, likely because of missing definition of the rerefence epoch. This commit fixes that by ensuring the corresponding compile-time constant to be baked into the corresponding header file.

Btw. an alternative approach would maybe include adding this variable to the KommonConfig.cmake file via add_compile_definitions (or target_compile_definitions), which however is less portable since that requires others to use the CMake build system to get the correct variables. The downside of this solution is that it only fixes the issue for KConst, the same type of issues may also appear for other flags that are added via target_compile_definitions. Since we didn't have any issues with that so far, I think we can assume that it is fine for now.

Closes #72.

This was tested by @pslocum in #74.

When using Kassiopeia as external library, previously there were compilation issues observed, likely because of missing definition of the rerefence epoch. This commit fixes that by ensuring the corresponding compile-time constant to be baked into the corresponding header file.
Copy link
Contributor

@richeldichel richeldichel left a comment

Choose a reason for hiding this comment

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

Sorry for the delayed feedback. This looks very good to me. Everything still works as expected. Thanks @2xB !

@richeldichel richeldichel merged commit 4f467b0 into KATRIN-Experiment:main Oct 16, 2023
1 check passed
@2xB 2xB deleted the 2xB/fixkconst branch October 16, 2023 14:14
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.

Physical constants epoch not working when using Kassiopeia as an external library
2 participants