Skip to content

Update FindGeant4 for reformatted G4Version header

Geant4 10.7 uses clang-format to apply its style across the code base. This resulted in a change to the layout of the line in G4Version.hh that FindGeant4 uses to determine the version number.

Update the regex used to pick out the version number from G4Version.hh to account for new format. Ensure back compatibility with versions prior to 10.7.

This isn't needed right now, but will future proof us for tests and migration to Geant4 10.7. Tested with current Athena master and Geant4 10.6.X and works fine, so fully compatible with older versions.

Merge request reports