The actual error message is somewhere higher up in the output. What you shared only says that something went wrong when building GoogleTest. It could be caused by almost anything, including, e.g., you running out of disk space.
Please share the full error message; preferably, the complete cmake log right from the start, since it also prints compiler versions and such.
Also: You are specifying CMAKE_PREFIX_PATH twice. That does not work (only the last flag will be used); you need to use semicolon-separated list (with single quotes around to keep the shell happy): -DCMAKE_PREFIX_PATH='/public/home/202210191827/GROMACS/FFTW3310;/public/home/202210191827/GROMACS/LIBTORCH'
The actual error message is somewhere higher up in the output. What you shared only says that something went wrong when building GoogleTest. It could be caused by almost anything, including, e.g., you running out of disk space.
Please share the full error message; preferably, the complete cmake log right from the start, since it also prints compiler versions and such.
Also: You are specifying CMAKE_PREFIX_PATH twice. That does not work (only the last flag will be used); you need to use semicolon-separated list (with single quotes around to keep the shell happy): -DCMAKE_PREFIX_PATH='/public/home/202210191827/GROMACS/FFTW3310;/public/home/202210191827/GROMACS/LIBTORCH'