| Summary: | Geant4 is not usable from the build tree | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Ben Morgan <Ben.Morgan> |
| Component: | cmake | Assignee: | Ben Morgan <Ben.Morgan> |
| Status: | CLOSED FIXED | ||
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | 9.4 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Ben Morgan
2011-04-21 16:21:14 CEST
In the short term we'll adapt the current 'geant4.sh' shell script and GNU make system so that these are generated in the build tree. Sourcing the script will point the needed variables to the build (and where needed, source) tree so that application builds can use these transparently. Longer term, we'll add full CMake config scripts to make this even easier: http://www.cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file Partially fixed in cmake-V09-04-05 which will generate environment setup scripts to configure the build tree of Geant4 for use by the old GNU Make toolchain. Work on the CMake Geant4Config solution is not feature complete yet, so won't mark as RESOLVED FIXED until then. Fully fixed in tag cmake-V09-04-08 Geant4Config.cmake allows use from build or install tree. geant4-environment-config.(c)sh allows use of old GNU make toolchain from build and install tree geant4-config provides correct information on either build or install tree Documented in cmake/INSTALL.g4cmake |