Installing Lapack in CentOS 7-8
For CentOS7,
ccmake -DCMAKE_INSTALL_PREFIX=/usr/local/lapack -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_SHARED_LIBS=ON -DLAPACKE=ON ..
Then make, make install will get you a working version of liblapacke.so
The current version 3.8.0 source has bugs that prevent the .so to work properly. Version 3.7.1 is the best to do.
For CentOS8, the Fedora 29 version of Lapack works by dnf install.