There is more

Many numerical codes rely heavily on matrix algebra operations and it is important to correctly link against high-performance implementations of the BLAS and LAPACK APIs. There is a large variability in the way vendors package their libraries for different architectures and parallel environments. FindBLAS.cmake and FindLAPACK.cmake will most likely not be able to locate an existing library in all possible cases. If that happens, you can explicitly set the libraries from the CLI via the -D option.

Get CMake Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.