summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin von Gagern <martin.vgagern@gmx.net>2018-11-18 10:24:44 (GMT)
committerBrad King <brad.king@kitware.com>2018-11-19 20:47:20 (GMT)
commita3c31effedbaf6c552fc433ac6688cb0453e7bf3 (patch)
tree0b8d2ed5a8da6db6fb157a28e6aca526c3bf5d97
parent8d70ed5a10362209d265a15d993f319235aea7e5 (diff)
downloadCMake-a3c31effedbaf6c552fc433ac6688cb0453e7bf3.zip
CMake-a3c31effedbaf6c552fc433ac6688cb0453e7bf3.tar.gz
CMake-a3c31effedbaf6c552fc433ac6688cb0453e7bf3.tar.bz2
FindBLAS: Restore BLAS_FOUND when found using pkgconfig
Refactoring in commit v3.12.0-rc1~92^2 (FindPkgConfig: export the list of found libraries also as variable, 2018-05-11) dropped use of FPHSA to set `BLAS_FOUND`. Set it explicitly instead.
-rw-r--r--Modules/FindBLAS.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index efcf355..b5546e0 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -93,6 +93,7 @@ if(BLA_PREFER_PKGCONFIG)
find_package(PkgConfig)
pkg_check_modules(PKGC_BLAS blas)
if(PKGC_BLAS_FOUND)
+ set(BLAS_FOUND ${PKGC_BLAS_FOUND})
set(BLAS_LIBRARIES "${PKGC_BLAS_LINK_LIBRARIES}")
return()
endif()