Problem 1199

Summary: Specification of header paths and link libraries in sources.cmake is too complex
Product: Geant4 Reporter: Ben Morgan <Ben.Morgan>
Component: cmakeAssignee: Ben Morgan <Ben.Morgan>
Status: RESOLVED LATER    
Severity: normal    
Priority: P3    
Version: 9.4   
Hardware: All   
OS: All   
Problem Depends on: 1198    
Problem Blocks:    

Description Ben Morgan 2011-04-21 16:08:34 CEST
If a Geant4 module/library requires other Geant4 or external headers/libraries, the developer has to write both the include_directories(...) command correctly, and add the correct libraries in the arguments to GEANT4_DEFINE_MODULE(...) macro. This makes life difficult for the developer and can lead to inconsistent or failing builds.
Comment 1 Ben Morgan 2011-04-21 16:11:22 CEST
The CMake system for Gaudi by Pere Mato provides a potential solution for this via the GAUDI_USE_PACKAGE macro - this will be investigated.
Comment 2 Ben Morgan 2011-10-11 13:08:39 CEST
This will be addressed following the 9.5 release, so postponed until 2012.

Marking as linked to Bug #1199 as both address the issue of the API used by developers to integrate their code into the Geant4 CMake system.

Marking as LATER simply so that status is clear - it will be addressed on the given timescale!