Are there any CMAKE experts on this Forum? If so do you have a version of findMKL or findLAPACK that works for me on modern Intel Fortran/Windows I have not tested them in Linux but suspect they are fine.
Why use CMAKE?
In recent years, I wasted loads of time sorting out “errors” in the ever increasing number of VS properties. So a friend has helped be migrate to CMAKE.
CMAKE is a MAKE package widely used by software professionals. In Windows CMAKE builds a VS solution from a few text files and this has improved my productivity. A typical one of my projects uses:
- Fortran (DLL or EXE) calling
- Fortran lib (DLL or static)
- C++ lib (DLL or static)
- Alglib C++
Whole projects were the easity ported to Linux (gfortran and c++) by someone with no experience in either Fortran and CMAKE.
The problem
My problem is including MKL / LAPACK tidily. The “proper” method is to use either FindMKL or findLAPACK. A DIY one would be either hard work and/ or less versatile than a good “maintained” one. But I cannot get any of the versions to work e.g.
findMKL:
https://raw.githubusercontent.com/hanjianwei/cmake-modules/master/FindMKL.cmake
https://github.com/Eyescale/CMake/blob/master/FindMKL.cmake
findLAPACK
github.com/torch/torch7/blob/master/lib/TH/cmake/FindLAPACK.cmake
It could just be an issue of setting parameters (e.g.BL:A_VENDOR) or environmental parameters. I am running from a VS developer cmd prompt and running
"C:\Program Files (x86)\Intel\Composer XE 2015\mkl\bin\MKLVARS.bat" ia32
which sets MKLROOT=C:\Program Files (x86)\Intel\Composer XE 2015\mkl amongst other vars.