Problem 1490

Summary: A weird symlink "Darwin-clang -> .." ends up in ${prefix}/lib/Geant4-9.6.2/
Product: Geant4 Reporter: Mojca Miklavec <mojca.miklavec.lists>
Component: cmakeAssignee: Ben Morgan <Ben.Morgan>
Status: CLOSED INVALID    
Severity: trivial    
Priority: P5    
Version: 9.6   
Hardware: All   
OS: Mac OS X   

Description Mojca Miklavec 2013-07-10 18:35:57 CEST
During CMake-based installation a weird symlink ends up in directory next to other *.cmake files. Here's the list of files:

    Darwin-clang -> ..
    Geant4Config.cmake
    Geant4ConfigVersion.cmake
    Geant4LibraryDepends-release.cmake
    Geant4LibraryDepends.cmake
    UseGeant4.cmake
    Modules/

What exactly is the purpose of that symlink?
Comment 1 Ben Morgan 2013-07-10 18:53:11 CEST
To support applications using the Geant4 Makefile system - that expects libraries to be installed under a directory named "PLATFORM-COMPILER". So it's there for backwards compatibility.
Comment 2 Mojca Miklavec 2013-07-10 19:27:05 CEST
So the libraries are searched in
    $prefix/lib/Geant4-9.6.2/Darwin-clang
? OK, I did some digging and found $G4LIB/$G4SYSTEM which is exactly the variable above. It's a bit weird, but I understand it. Thank you for explanation and I'm sorry misreport.