From: Matthias Maier Date: Tue, 24 Apr 2018 04:17:47 +0000 (-0500) Subject: CMake: Ensure to be compatible with version 3.11 FindBlas.cmake X-Git-Tag: v9.0.0-rc1~131^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83a2a3dbc399e0b1452d0d27a56fb370182267d3;p=dealii.git 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 --- 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*