| Summary: | cmake -DGEANT4_USE_SYSTEM_ZLIB="ON" does not define G4LIB_USE_ZLIB in cpp | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Olivier LAHAYE <olivier.lahaye1> |
| Component: | cmake | Assignee: | Ben Morgan <Ben.Morgan> |
| Status: | CLOSED FIXED | ||
| Severity: | trivial | ||
| Priority: | P5 | ||
| Version: | 9.5 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1291 | ||
| Attachments: |
Fixes architecture.gmk for G4LIB_USE_ZLIB
replace hardcoded G4zlib by ${ZLIB_LIBRARIES} in HepRep/sources.cmake add_definitions(-DG4LIB_USE_ZLIB) so G4HepRepSceneHandler.cc uses zlib |
||
|
Description
Olivier LAHAYE
2012-06-08 16:16:38 CEST
Created attachment 172 [details]
replace hardcoded G4zlib by ${ZLIB_LIBRARIES} in HepRep/sources.cmake
replace hardcoded G4zlib by ${ZLIB_LIBRARIES}
needs to put G4zlib in ZLIB_LIBRARIES if ZLIB_FOUND is false
Created attachment 173 [details]
add_definitions(-DG4LIB_USE_ZLIB) so G4HepRepSceneHandler.cc uses zlib
add_definitions(-DG4LIB_USE_ZLIB) so G4HepRepSceneHandler.cc builds using zlib.
May need to be located in HepRep/source.cmake instead of Modules/Geant4OptionalComponents.cmake
But as I'm ultra newbee in cmake, this is just a supposition.
This is a prework that surely needs attention.
Thanks for the patches - note that the system vs internal libraries interface will be updated for consistent use in 9.6, but this will not make it into the beta for 9.6. It will however appear in the release later this year. The same goes for the related Bug #1291. Great! tanks a lot for your work. The move toward cmake vs proprietary configure script was a big step, especially for the rpm packager I am. Keep up the good work guys :-) Apologies for the delay in fixing this - we have also re-organized the use of internal/external packages, so it took a little longer than it should... Fixed in tags cmake-V09-06-07 vis-HepRep-V09-06-05 These should make it into the next patch of 9.6, possibly into the next patch of 9.5. Thanks again for the report and patches! |