FindBLAS: Fix detection of OpenMP as dependency of BLA_STATIC
Update the change from !5487 (merged):
-
If C is not enabled, find CXX OpenMP libraries instead.
-
Do not use BLA_STATIC's custom CMAKE_FIND_LIBRARY_SUFFIXES for OpenMP. It can break projects that already call
find_package(OpenMP)
and expect a shared library. Whether OpenMP is static is orthogonal to whether BLAS is static.
Fixes: #22039 (closed)
Issue: #16221 (closed)
Backport: release