From 53cba99042fa967e2a93da9f8db806fe2d035543 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 17 Feb 2020 01:16:38 +0000 Subject: gentoo resync : 17.02.2020 --- .../cmake/files/cmake-3.17.0_rc1-FindBLAS.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 dev-util/cmake/files/cmake-3.17.0_rc1-FindBLAS.patch (limited to 'dev-util/cmake/files/cmake-3.17.0_rc1-FindBLAS.patch') diff --git a/dev-util/cmake/files/cmake-3.17.0_rc1-FindBLAS.patch b/dev-util/cmake/files/cmake-3.17.0_rc1-FindBLAS.patch new file mode 100644 index 000000000000..6c919877cfd1 --- /dev/null +++ b/dev-util/cmake/files/cmake-3.17.0_rc1-FindBLAS.patch @@ -0,0 +1,37 @@ +From f4009d1efccf571d229e89fab846b0d5873e7a5b Mon Sep 17 00:00:00 2001 +From: Lars Wendler +Date: Thu, 13 Feb 2020 13:12:45 +0100 +Subject: [PATCH] Prefer pkgconfig in FindBLAS + +--- + Modules/FindBLAS.cmake | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake +index 9b6d09c2f9..c2af42468c 100644 +--- a/Modules/FindBLAS.cmake ++++ b/Modules/FindBLAS.cmake +@@ -7,6 +7,10 @@ FindBLAS + + Find Basic Linear Algebra Subprograms (BLAS) library + ++Version modified for Gentoo Linux. ++If a valid PkgConfig configuration is found, this overrides and cancels ++all further checks. ++ + This module finds an installed Fortran library that implements the + BLAS linear-algebra interface (see http://www.netlib.org/blas/). + +@@ -107,6 +111,9 @@ if(NOT (CMAKE_C_COMPILER_LOADED OR CMAKE_CXX_COMPILER_LOADED OR CMAKE_Fortran_CO + endif() + endif() + ++# first, try PkgConfig ++set(BLA_PREFER_PKGCONFIG On) ++ + if(CMAKE_Fortran_COMPILER_LOADED) + include(${CMAKE_CURRENT_LIST_DIR}/CheckFortranFunctionExists.cmake) + else() +-- +2.25.0 + -- cgit v1.2.3