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

Improve check for a header file from DD4hep #400

Merged
merged 5 commits into from
Jan 24, 2025
Merged

Improve check for a header file from DD4hep #400

merged 5 commits into from
Jan 24, 2025

Conversation

jmcarcell
Copy link
Member

@jmcarcell jmcarcell commented Sep 29, 2024

BEGINRELEASENOTES

  • Improve the check for DCH_info.h from DD4hep. It was added in version 1.29 so if the version is below that don't use it.

ENDRELEASENOTES

Also CMake hangs for a while on that check, maybe it's checking a lot of paths. Since DDRec is in the defaults and always built in the stack, I think it's fine not to check for this or if needed to check for DDRec. Eventually the list of files that depend on this header file will be wrong.

@atolosadelgado
Copy link
Collaborator

@jmcarcell

this check avoids compilation error when old versions of the stack are used, I would prefer keeping that check...

The code was actually introduced by @andresailer , what do you think?

@andresailer
Copy link
Contributor

As long as we don't require a DD4hep version that includes this file we shouldn't drop the check. We can't check for DDRec because the file was introduced long after DDRec

@jmcarcell
Copy link
Member Author

Indeed, now this checks on the version of DD4hep where that header was introduced and if it doesn't exist it will not build the file.

@jmcarcell jmcarcell changed the title Remove check for a header file Improve check for a header file from DD4hep Jan 24, 2025
@jmcarcell jmcarcell enabled auto-merge (squash) January 24, 2025 09:20
@jmcarcell jmcarcell merged commit 3cd447f into main Jan 24, 2025
7 checks passed
@jmcarcell jmcarcell deleted the ddrec-check branch January 24, 2025 09:28
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.

3 participants