From 83a2a3dbc399e0b1452d0d27a56fb370182267d3 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 23 Apr 2018 23:17:47 -0500 Subject: [PATCH] CMake: Ensure to be compatible with version 3.11 FindBlas.cmake We have to work around some upstream changes [1] that break our project configuration. Let's simply filter out the "PkgConfig::PKGC_BLAS" string and hope for the best. [1] https://gitlab.kitware.com/cmake/cmake/issues/17934 --- cmake/modules/FindLAPACK.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake/modules/FindLAPACK.cmake b/cmake/modules/FindLAPACK.cmake index 5f0db205e0..cf201ce6ee 100644 --- a/cmake/modules/FindLAPACK.cmake +++ b/cmake/modules/FindLAPACK.cmake @@ -66,6 +66,15 @@ IF(DEFINED LAPACK_LIBRARIES) LIST(REMOVE_ITEM LAPACK_LIBRARIES "FALSE") ENDIF() +# +# Work around a bug in CMake 3.11 by simply filtering out out +# "PkgConf::PKGC_BLAS". See bug +# https://gitlab.kitware.com/cmake/cmake/issues/17934 +# +IF(DEFINED BLAS_LIBRARIES) + LIST(REMOVE_ITEM BLAS_LIBRARIES "PkgConfig::PKGC_BLAS") +ENDIF() + # # Well, in case of static archives we have to manually pick up the # complete link interface. *sigh* -- 2.39.5