Distributed-Memory Hierarchical Matrices (DMHM) can usually be configured and built using: cd dmhm mkdir build cd build cmake .. make If something other than the reference BLAS/LAPACK libs are desired for DMHM, you should add them into the CMake command using a semi-colon delimited list of the form: -DMATH_LIBS="/path/to/first/lib.a;/path/to/second/lib.a"