[CMake] Cray compiler + omp_lib.a

Nico Schlömer nico.schloemer at gmail.com
Tue Apr 10 08:20:41 EDT 2012


Hi,

I'm trying to compile a mixed Fortran/C++ toolkit with CMake, and
there's a small error that keeps things from working at the moment.
The problem appears when linking executables, for example when
verifying the Fortran/C++ interface (in CMake:
INCLUDE(FortranCInterface), FortranCInterface_VERIFY(CXX)).
The link line contains "-lmodules -lomp_lib", and fails with

cannot find -lomp_lib

Indeed, no file "libomp_lib.a" exists. There is an "omp_lib.a",
though, in the standard Cray LD path (right next to libmodules.a,
btw).

Could this be a CMake bug?

Cheers,
Nico


More information about the CMake mailing list