[CMake] C++ with BLAS

Nico Schlömer nico.schloemer at gmail.com
Fri Mar 5 03:25:59 EST 2010


Hi,

I build my C++ application here with CMake which works rather fine,
except for one minor glitch:
The application needs to link against BLAS, which I specify as

TARGET_LINK_LIBRARIES( /path/to/blas/libblas.a )

This gets included alright, but libblas -- written in Fortran -- in
turn needs symbols from libgfortran.a. This library, however, is never
automatically included; I have to manually specify it.

Any way to automate this?

Cheers,
Nico


More information about the CMake mailing list