FindBLAS: Quiet pkg-config errors

Issue: #23314
This commit is contained in:
nega
2022-03-30 14:09:36 -04:00
committed by Brad King
parent b2a7f73b55
commit 6dab35e25d

View File

@@ -273,8 +273,8 @@ endif()
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
if(BLA_PREFER_PKGCONFIG)
find_package(PkgConfig)
pkg_check_modules(PKGC_BLAS blas)
find_package(PkgConfig QUIET)
pkg_check_modules(PKGC_BLAS QUIET blas)
if(PKGC_BLAS_FOUND)
set(BLAS_FOUND ${PKGC_BLAS_FOUND})
set(BLAS_LIBRARIES "${PKGC_BLAS_LINK_LIBRARIES}")