Problem 2496

Summary: optional package includes and libs missing in geant4-config
Product: Geant4 Reporter: jasondet
Component: cmakeAssignee: Ben Morgan <Ben.Morgan>
Status: ASSIGNED ---    
Severity: normal    
Priority: P4    
Version: 10.7   
Hardware: All   
OS: All   

Description jasondet 2022-06-25 18:23:29 CEST
The output of geant4-config --cflags and geant4-config --libs appears to get augmented inconsistently based on user-selected options. For example, I have an application that I built on a Mac with the QT vis option and GDML support. geant4-config includes everything needed to build against the QT support, but I had to manually add -lxerces-c to the end of geant4-config --libs in order to get my application to link.

At the time of installation Geant4 knows the locations of all of the special I/L paths and libs it used to build. For geant4-config to work properly, all of these special paths and libs need to be added to the output of geant4-config --cflags and geant4-config --libs.