| Summary: | Trajectory drawing does not work with cmake-build Geant 4.9.4_p01 | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Matthias Nagl <geantbugs> |
| Component: | cmake | Assignee: | Ben Morgan <Ben.Morgan> |
| Status: | CLOSED FIXED | ||
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | 9.4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Fix for the missing G4_NO_STORE_TRAJECTORY definition | ||
Thanks for the fix - it'll be in the summer beta, but we'll probably wrap it in an option(...) command so it behaves as in the current system. Ben. Fixed in SVN : Revision #49877, log: BUGFIX : Bug #1208 : Added G4_STORE_TRAJECTORY to global compile definitions Also added a CMake advanced option so that users can choose not to store trajectories, but by default this option is set to ON. This replicates the behaviour in the current Geant4 makefiles. The option is marked as advanced because most users will not need to adjust this performance tweak. |
Created attachment 107 [details] Fix for the missing G4_NO_STORE_TRAJECTORY definition Cmake-build installs of Geant 4.9.4_p01 do not support the drawing of trajectories with any visualisation driver. The problem results from a missing define (G4_STORE_TRAJECTORY). The old build system defines this in config/architecture.gmk: ifndef G4_NO_STORE_TRAJECTORY CPPFLAGS += -DG4_STORE_TRAJECTORY endif A simple fix (without the G4_NO_STORE_TRAJECTORY functionality) is added as attachment.