-
Notifications
You must be signed in to change notification settings - Fork 98
fix(build): Fix issue with cmake > 3.30 8000 #1603
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
base: dev
Are you sure you want to change the base?
Conversation
CMake 3.31 deprecate Compatibility with CMake < 3.10 which emits two warnings from Geant4 and vgm cmake macros. The usage of -Werror=dev turns the warning into an error which breaks the CI for some systems which already use cmake 3.31.
📝 WalkthroughWalkthroughThe change updates the build configuration in the Changes
Suggested reviewers
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Re-assigned to @ChristianTackeGSI as he added this option with the comment that this warning class should error in our CI. So, I guess, he has a solution - other than disabling the error - in mind for the case this is triggered. |
Perhaps related https://gitlab.kitware.com/cmake/cmake/-/issues/26288 |
The problem is that the error doesn't come from our own project but from some of our dependencies which we can't fix. |
Sure, but still interested what Christian had in mind in such cases. (I personally never understood how "warning:=error" type of flags shall work.) Your PR proposes to remove the flag unconditionally, which means the original function - whatever it was supposed to be - goes away forever for all cases. Is this the intention? (In theory, you only need to disable it for cases where unsuitable Geant and VGM versions are used, right? Or better, if one could only apply it for local code) |
I naively had the hope that the option I had used would only affect our code (so that our code – which we can control – has no warnings at all). As this flag also affects third party code, this hope has become a false one. So, yes, please remove it from the general CI build. Way forward:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly open a new Issue (so that we remember about it) about using warnings-next-generation in the CI instead.
CMake 3.31 deprecates the compatibility with CMake < 3.10 which emits two warnings from Geant4 and vgm cmake macros. The usage of -Werror=dev turns the warning into an error which breaks the CI for some systems which already use cmake 3.31.
Checklist: