mpimd-csc / flexiblas

FlexiBLAS - A BLAS and LAPACK wrapper library with runtime exchangeable backends. This is only a mirror of https://gitlab.mpi-magdeburg.mpg.de/software/flexiblas-release
https://www.mpi-magdeburg.mpg.de/projects/flexiblas
GNU Lesser General Public License v3.0
36 stars 7 forks source link

Expand search paths for find_library() #28

Closed kcgthb closed 2 years ago

kcgthb commented 2 years ago

Don't restrict paths where find_library() will look for things, let it use CMAKE_PREFIX_PATH and CMAKE_LIBRARY_PATH when defined.

This is in addition of the paths defined with SET(SEARCH_PATH and won't prevent detection of locally installed libraries (via package managers).

See #27

kcgthb commented 2 years ago

For instance, if I load an OpenBLAS module that adds /share/software/user/open/openblas/0.3.20/lib to CMAKE_LIBRARY_PATH: