diff options
author | Martin von Gagern <martin.vgagern@gmx.net> | 2018-11-18 05:24:44 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-19 15:47:20 -0500 |
commit | a3c31effedbaf6c552fc433ac6688cb0453e7bf3 (patch) | |
tree | 0b8d2ed5a8da6db6fb157a28e6aca526c3bf5d97 | |
parent | 8d70ed5a10362209d265a15d993f319235aea7e5 (diff) | |
download | cmake-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.cmake | 1 |
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() |