summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin von Gagern <martin.vgagern@gmx.net>2018-11-18 05:24:44 -0500
committerBrad King <brad.king@kitware.com>2018-11-19 15:47:20 -0500
commita3c31effedbaf6c552fc433ac6688cb0453e7bf3 (patch)
tree0b8d2ed5a8da6db6fb157a28e6aca526c3bf5d97
parent8d70ed5a10362209d265a15d993f319235aea7e5 (diff)
downloadcmake-a3c31effedbaf6c552fc433ac6688cb0453e7bf3.tar.gz
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 efcf35564c..b5546e0949 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()