FindBLAS uses MATCHES ".+gcc" instead of CMAKE_C_COMPILER_ID
if (CMAKE_C_COMPILER MATCHES ".+gcc")
This would be better:
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
My compiler is GNU, but does not end in gcc.
Similar to detect Intel compiler?