CMake: different path for libraries and cmake modules
mojca at macports.org
Tue Jul 16 11:08:53 PDT 2013
I'm trying some luck among MacPorts developers because I didn't get
any answer on the CMake mailing list.
If I want to install multiple versions of Geant4 side-by-side, I need
to move the libraries to version-specific folder with
but that results in CMake modules ending up in
In default configuration this is ok - they should end up in
which is the default search path for CMake modules
But the weird path above is wrong. However, I have no idea how to move
the cmake files elsewhere. This would need a patch in Geant4
configuration to allow for something similar to
but I'm not even sure what to request from the Geant4 developers.
The only alternative is moving the cmake files "manually" (file move)
in post-destroot phase and patching some of the files afterwards. I
tried symlinking, but it didn't help (CMake files know their own
location, but they user their symlinked location, not the real one).
Is anyone aware of a better option? Or what exactly the Geant4
developers should be asked for to simplify installation without
There initial response was "install one version only, to the default
location, or patch yourself". (Some programs like Gate really require
a specific version of Geant.) If I suggest them a clean solution,
maybe they would be willing to patch the sources, but I don't know
myself what a clean solution would be.
More information about the macports-dev