summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2018-05-11 15:17:26 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2018-05-11 17:35:53 (GMT)
commit92ac721a44bcae43ed9ad33d4d0fb22968073a92 (patch)
tree67ed61634abc00ea8d403f39a5964bdd1defdaa9 /Modules/FindBLAS.cmake
parentc9e995c9efdaa462ac2649f1c1ff4e511db7fcf5 (diff)
downloadCMake-92ac721a44bcae43ed9ad33d4d0fb22968073a92.zip
CMake-92ac721a44bcae43ed9ad33d4d0fb22968073a92.tar.gz
CMake-92ac721a44bcae43ed9ad33d4d0fb22968073a92.tar.bz2
FindPkgConfig: export the list of found libraries also as variable
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake11
1 files changed, 2 insertions, 9 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index 5223b1d..5ee703a 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -88,16 +88,9 @@ endif()
if(BLA_PREFER_PKGCONFIG)
find_package(PkgConfig)
- pkg_check_modules(PKGC_BLAS IMPORTED_TARGET blas)
+ pkg_check_modules(PKGC_BLAS blas)
if(PKGC_BLAS_FOUND)
- # FIXME: We should not interpret the INTERFACE_LINK_LIBRARIES property
- # because it could have generator expressions and such. This is a
- # workaround for pkg_check_modules not providing a first-class way to
- # get the list of libraries.
- get_property(BLAS_LIBRARIES TARGET PkgConfig::PKGC_BLAS PROPERTY INTERFACE_LINK_LIBRARIES)
- find_package_handle_standard_args(BLAS
- REQUIRED_VARS BLAS_LIBRARIES
- VERSION_VAR PKGC_BLAS_VERSION)
+ set(BLAS_LIBRARIES "${PKGC_BLAS_LINK_LIBRARIES}")
return()
endif()
endif()