I'm using old Cmake version(3.1) which detects OpenBLAS as Generic version in FindLAPACK.cmake
Now I can find if openBLAS is installed or not but how to detect if LAPACK returned by FindLAPACK is the OpenBLAS version.
Using regex won't work either because the LAPACK_LIBRARIES gives path such as
/usr/lib/liblapack.so
but internally it points to
/usr/lib/openblas-base/liblapack.so.3
Is there any other way such as searching for a function or something else?