Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use direct linking to vecgeom's CUDA target to match AdePT (#346)
Reported by @SeverinDiederichs, trying to build AdePT with a static VecGeom results in a failure of the `test_g4vg_link` buildtime test. This wasn't spotted in the initial PR because my setup had used a _shared_ build of VecGeom. The underlying cause is likely a corner case in `cuda_rdc_target_link_libraries` not linking in everything from VecGeom in the right order, or failing to do a final device link in the static case. This does not affect linking of AdePT itself with VecGeom and G4VG, where the explicit links to the VecGeom libs are done in the same way as this fix. Use direct call to target_link_libraries for the G4VG link test, explicitly linking to both G4VG and the Vecgeomcuda targets. This gives a correct link whether VecGeom was built with static or shared libs, and matches what is done elsewhere in AdePT.
- Loading branch information