Problem 2115 - binary mac OSX distribution contains hardcoded Geant4_INCLUDE_DIR
Summary: binary mac OSX distribution contains hardcoded Geant4_INCLUDE_DIR
Status: CLOSED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: cmake (show other problems)
Version: 10.5
Hardware: All All
: P4 minor
Assignee: Ben Morgan
URL:
Depends on:
Blocks:
 
Reported: 2019-01-12 02:03 CET by Dan Weatherill
Modified: 2020-02-07 16:07 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Dan Weatherill 2019-01-12 02:03:54 CET
When using the pre-compiled Geant4 installation for mac OSX (as found at https://geant4.web.cern.ch/support/download), and configuring a project using, e.g.

cmake .. -DGeant4_DIR=/Users/user/Geant4-10.5.0-Darwin/lib/Geant4-10.5.0 

the UseGeant4.cmake file is found correctly, but files cannot build due to missing include directories. In Geant4Config.cmake of the distributed package (specifically line 216), Geant4_INCLUDE_DIR is hardcoded to:

"/Users/gcosmo/Software/release/install/include/Geant4"

I realise this is the default that will be generated using a standard cmake package generation, but for a redistributatble package, either this should be calculated (the Geant4_LIBRARIES appear to be able to calculate the paths properly), or at least a warning message indicating the user must set this manually to be successful.

Thanks very much,
Dan W
Comment 1 Ben Morgan 2019-01-24 12:02:55 CET
Will have a look
Comment 2 Ben Morgan 2019-09-27 21:36:11 CEST
This will be fixed for the upcoming 10.6 release (December)
Comment 3 Ben Morgan 2020-02-07 16:07:49 CET
Now fixed in the 10.6 release, where the requirement for absolute paths was removed. However, we're not patching 10.5 in the near future, and it's unlikely we can backport the change cleanly.

I'm therefore closing as RESOLVED FIXED with that caveat.