FindBLAS with Intel MKL on Windows
Hi everyone,
I am trying to build/install Suitesparse on Windows as I need the embedded umfpack for a project that runs in fortran. I am using Visual Studio 2022 CE and the Intel fotran compiler from the oneAPI. When I want to build the suitesparse source files using Cmake I always get the following error
CMake Error at C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find BLAS (missing: BLAS_LIBRARIES)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.23/Modules/FindBLAS.cmake:1337 (find_package_handle_standard_args)
CMakeLists.txt:117 (find_package)
It seems that Cmake is unable to locate the BLAS and LAPACK libraries of Intel MKL. I have tried several things already, like directly adding the mkl directory to the search path or defining the MKLROOT variable but nothing works. It seems that it is not an issue with CMakeListsCMakeLists.txt as I tried it with a simple sample project but I get the same error.
project(test)
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
enable_language(Fortran)
set(BLA_VENDOR Intel10_64lp)
find_package(BLAS REQUIRED)
I am really lost at this point as I am relatively new to Cmake etc. Help would be greatly appreciated.
Here the error logs/outputs CMakeError.log
Thanks already