Make use of Geant4 STATIC Libraries if available

Issue #299 new
Laurie Nevay created an issue

If the static libraries are available we should use them, or provide an option to do so. Currently, they’ll be ignored.

Geant4 has an option in cmake to build with the static libraries. If this is true, it builds these in addition to the shared libraries. However, when linking against Geant4 their cmake will by default give the shared libraries. We should request the component in find_library “static” and if it’s true then their cmake will change which libraries are given to bdsim.

Comments (0)

  1. Log in to comment