FindBLAS: Could not find BLAS on Windows
Hello,
I have been trying to use cmake for the build of some libraries from https://github.com/Argonne-National-Laboratory/neml. For this package, BLAS and LAPACK are required. This is on Windows 10, my cmake version is 3.20.2 and BLAS/LAPACK were installed from the Lapack package 3.9.1. from here (http://icl.cs.utk.edu/lapack-for-windows/lapack/).
After invoking cmake
for this neml library:
cmake -DCMAKE_CXX_COMPILER=icl.exe -DBLAS_blas_LIBRARY=D:\GITlib\lapack_build\bin\libblas.dll -DLAPACK_lapack_LIBRARY=D:\GITlib\lapack_build\bin\liblapack.dll -DBoost_INCLUDE_DIR="D:\GITlib\boost" -DCMAKE_BUILD_TYPE=Release -DUSE_OPENMP=False -G Ninja .
I get the following error:
CMake Error at D:/GITlib/cmake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find BLAS (missing: BLAS_LIBRARIES)
Call Stack (most recent call first):
D:/GITlib/cmake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
D:/GITlib/cmake/share/cmake-3.20/Modules/FindBLAS.cmake:1045 (find_package_handle_standard_args)
CMakeLists.txt:42 (FIND_PACKAGE)
I have looked into previous discussions on this, notably one for Win 10 and OpenBlas not being found, but it was not resolved. The suggestions there were to either add the path to blas.dll in the CMakeLists or add blas.dll location to PATH variable - both tried without success. Any help will be much appreciated. Thanks in advance!