Find libgfortran if it's installed in custom prefixes

Review Request #108701 - Created Feb. 1, 2013 and submitted

Information
Christophe Giboudeaux
cantor
master
314253
Reviewers
buildsystem, kdeedu
aacid
FindR.cmake tries to find libgfortran when the R_lapack library is found. With the current file, the detection fails on openSUSE.
libgfortran is not installed in a common directory but in /usr/lib64/gcc/<arch>/<compiler version>/

With this patch, FindR tries to find the gfortran executable and runs 'gfortran -print-file-name=libgfortran.so' to get the library path.

if the gfortran executable cannot be found, find_library(...) is used.


Tested successfully with the 4.10 tarball.
Christophe Giboudeaux
Christophe Giboudeaux
Christophe Giboudeaux
Rex Dieter
Albert Astals Cid
Commit Hook
Christophe Giboudeaux
Review request changed

Status: Closed (submitted)

Loading...