Geant4 Libraries not found on cluster

I’m trying to install g4py on a cluster and after I run CMake, which runs to completion without issue, the make command fails with errors like:

/usr/bin/ld: cannot find -lG4OpenGL
/usr/bin/ld: cannot find -lG4gl2ps
/usr/bin/ld: cannot find -lG4Tree
/usr/bin/ld: cannot find -lG4FR
/usr/bin/ld: cannot find -lG4GMocren
/usr/bin/ld: cannot find -lG4visHepRep
/usr/bin/ld: cannot find -lG4RayTracer
/usr/bin/ld: cannot find -lG4VRML
/usr/bin/ld: cannot find -lG4vis_management
/usr/bin/ld: cannot find -lG4modeling
/usr/bin/ld: cannot find -lG4interfaces
/usr/bin/ld: cannot find -lG4persistency
/usr/bin/ld: cannot find -lG4analysis
/usr/bin/ld: cannot find -lG4error_propagation
/usr/bin/ld: cannot find -lG4readout
/usr/bin/ld: cannot find -lG4physicslists
/usr/bin/ld: cannot find -lG4run
/usr/bin/ld: cannot find -lG4event
/usr/bin/ld: cannot find -lG4tracking
/usr/bin/ld: cannot find -lG4parmodels
/usr/bin/ld: cannot find -lG4processes
/usr/bin/ld: cannot find -lG4digits_hits
/usr/bin/ld: cannot find -lG4track
/usr/bin/ld: cannot find -lG4particles
/usr/bin/ld: cannot find -lG4geometry
/usr/bin/ld: cannot find -lG4materials
/usr/bin/ld: cannot find -lG4graphics_reps
/usr/bin/ld: cannot find -lG4intercoms
/usr/bin/ld: cannot find -lG4global
/usr/bin/ld: cannot find -lG4clhep

I have successfully installed Geant4 and run the examples without any issue, so the libraries must be there. I don’t know what is causing the compilation of the g4py libraries to fail.

How can I link the Geant4 libraries to the make compiler?

The libraries were not found because Geant4 installed them under the name lib64 and the CMakeLists.txt looks for the lib folder. Linking the lib64 to lib fixed my installation issue.