Re: [CMake] Forcing CMake to find static library

2017-06-09 Thread Michael Ellery
if you know exactly where the library is (via the ENV), then I guess you want to specify the NO_DEFAULT_PATH option to find_library. Alternatively, see if you can use the standard find module included with cmake: https://github.com/Kitware/CMake/blob/master/Modules/FindLAPACK.cmake ..and in

[CMake] Forcing CMake to find static library

2017-06-09 Thread Matthias Redies
Hello, I am trying to force CMAKE to include a specific static lapack library, set through the environment variable $LAPACK_LIB: > ls $LAPACK_LIB libblas_extra.a libcblas.a liblapack.a liblapacke.a libtmglib.a > echo $LAPACK_LIB /bgsys/local/lapack/3.7.0/lib This is how I am trying to