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?
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.
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.