This will be by defining CMAKE_INSTALL_PREFIX on CLI:
cmake -DCMAKE_INSTALL_PREFIX:PATH=${EASIFEM_EXTPKGS} -S . -B ./buildThere are two ways to do this: In the first approach, environment variable is defined, these variables are CMAKE_LAPACK_ROOT and CMAKE_BLAS_ROOT, for examples:
export CMAKE_LAPACK_ROOT="/usr/local/opt/openblas/"
export CMAKE_BLAS_ROOT="/usr/local/opt/openblas/"In the second approach define CMAKE_LAPACK_ROOT and CMAKE_BLAS_ROOT on CLI:
cmake -DCMAKE_INSTALL_PREFIX:PATH=${EASIFEM_EXTPKGS}
-DCMAKE_LAPACK_ROOT:PATH=/usr/local/opt/openblas/
-DCMAKE_BLAS_ROOT:PATH=/usr/local/opt/openblas/
-S . -B ./buildIf the above two apporaches are not employed then define USE_BLAS on CLI:
cmake -DCMAKE_INSTALL_PREFIX:PATH=${EASIFEM_EXTPKGS}
-DUSE_BLAS="Netlib"
-S . -B ./build
USE_BLAScan take any value from the list:NetlibOpenBLASAtlasMKL
cmake --build ./build --target install- This will install
/include/lib/share/cmake/SparsekitatCMAKE_INSTALL_PREFIX. libSparsekit.dyliborlibSparsekit.awill be located at/lib/sharecontains cmake configuration file
- For cmake to find Sparsekit one need to define
CMAKE_PREFIX_PATHon CLI. - For linking use
Sparsekit::Sparsekit
- Build fortran flag for
IntelandPGIfortran-compilers. - Design test program