Message: Re: CMAKE_INSTALL_LIBDIR & proper way for side-by-side installation of multiple Geant4 versions Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: CMAKE_INSTALL_LIBDIR & proper way for side-by-side installation of multiple Geant4 versions 

Forum: Installation and Configuration
Re: Question CMAKE_INSTALL_LIBDIR & proper way for side-by-side installation of multiple Geant4 versions (Mojca Miklavec)
Re: Warning Re: CMAKE_INSTALL_LIBDIR & proper way for side-by-side installation of multiple Geant4 versions (Ben Morgan)
Re: None Re: CMAKE_INSTALL_LIBDIR & proper way for side-by-side installation of multiple Geant4 versions (Mojca Miklavec)
Re: None Re: CMAKE_INSTALL_LIBDIR & proper way for side-by-side installation of multiple Geant4 versions (Ben Morgan)
Re: None Re: CMAKE_INSTALL_LIBDIR & proper way for side-by-side installation of multiple Geant4 versions (Mojca Miklavec)
Date: 25 Jul, 2013
From: Mojca Miklavec <Mojca Miklavec>

Despite no official response about the proper way of installing *.dylib and *cmake files to different folders (I also tried to ask on the CMake mailing list) I managed to apply a minor patch to CMake files, so that libraries get installed to lib/Geant4/Geant4.9.6/*.dylib and CMake files get installed to lib/Geant4-9.6.2/*.cmake.

I also implemented "port select" in MacPorts to select the default Geant4 installation (at the moment it only puts geant4-config and geant4.sh to $prefix/bin).

There is one question left however. If I now compile examples from Geant4 9.6, they are linked against Geant4 10.0 because that's the version that CMake chooses automatically (probably the highest available version). I can easily change this by setting -DGeant4_DIR=${prefix}/lib/Geant4-9.6.2 explicitly during ccmake/cmake, but the main question is:

Should the CMake modules be placed at default search location only for the package that has been activated ("port select --set geant4 geant4.9.6") or is it better if all versions are available and if remains the user's own responsibility to select the right version at compile time of his code (in case that there are multiple versions installed). (When there is just 9.6 installed this is not an issue at all.)

Thank you, Mojca

 Add Message Add Message
to: "Re: CMAKE_INSTALL_LIBDIR & proper way for side-by-side installation of multiple Geant4 versions"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]