Skip to content

Build Geant4 with static libraries only to support AtlasGeant4 performance

Following implementation of single "AtlasGeant4" library in Athena, realizing the improved performance requires use of Geant4 static libraries by Athena.

This MR updates the build of the Geant4 external and FindGeant4 module to:

  • Disable shared libraries
  • Enable static libraries
  • Build statics in PIC mode to allow linking to shared AtlasGeant4
  • Use correct library ordering for static linking
  • Re-find needed EXPAT/ZLIB dependencies of Geant4 required when linking it statically

Final step of ATLASSIM-3150 (cc'ing @mbandier and @jchapman)

Merge request reports