[CMake] Please support FindLAPACK/FindBLAS for C/C++-only projects
Jed Brown
jed at 59A2.org
Thu Jan 21 11:22:26 EST 2010
On Thu, 21 Jan 2010 09:17:22 -0600, Mark Moll <mmoll at cs.rice.edu> wrote:
> You *can* use the Fortran BLAS/LAPACK libraries with C/C++ code.
Yes, this is actually very common, but check_fortran_function_exists
works by trying to link an actual Fortran program. When calling from C,
you have to know how Fortran names are mangled which means testing a
number of common choices. Nobody put this logic into these Find
modules, but it would be nice because many (most?) users of BLAS/Lapack
need to call it from both Fortran and C so they need to know how the
symbols are mangled. CBLAS/CLapack are entirely different beasts, but I
know of far more C projects that call the Fortran versions directly than
use the C bindings.
Jed
More information about the CMake
mailing list