FindBLAS: OpenMP search is not QUIET
A little while ago we started flagging -- Could NOT find
messages in our CMake configurations as warnings in our builds. Which revealed messages like:
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - not found
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - not found
-- Could NOT find OpenMP_C (missing: OpenMP_pthread_LIBRARY) (found version "4.5")
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND C)
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Found BLAS: /cvmfs/sft.cern.ch/lcg/releases/LCG_101_ATLAS_7/blas/0.3.17.openblas/x86_64-centos7-gcc11-opt/lib/libopenblas.a;-pthread
Which would be coming from an innocent find_package(BLAS)
call, which even succeeds.
For the moment we'll be working around the issue with: https://gitlab.cern.ch/atlas/atlasexternals/-/merge_requests/910 But some better solution would certainly be welcome. One with which FindBLAS.cmake
would not be printing messages about not finding some "other packages" while it is doing its job.
Note that currently FindBLAS.cmake
does not even silence these messages when you call:
find_package(BLAS QUIET)
Which I consider a bug. While the qualification of the unwanted messages (with no QUIET
being used) one could argue about...
Edited by Brad King