]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Ensure to be compatible with version 3.11 FindBlas.cmake 6308/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 24 Apr 2018 04:17:47 +0000 (23:17 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 24 Apr 2018 04:17:47 +0000 (23:17 -0500)
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

index 5f0db205e0cf53db0a4b84a96faa56a67d41f3f5..cf201ce6eedce0cf20ff60cb5d10b6d96f839b2f 100644 (file)
@@ -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*

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.