Commit f13a20e6 authored by qbisi's avatar qbisi
Browse files

superlu_dist: use pkg-config to find LAPACK

CMake in Nixpkgs may mistakenly detect BLAS or the Apple SDK
framework when locating the LAPACK directory.
This issue can be resolved by setting BLA_PREFER_PKGCONFIG=ON.
parent 139ac1e9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  fetchurl,
  llvmPackages,
  cmake,
  pkg-config,
  gfortran,
  blas,
  lapack,
@@ -52,6 +53,7 @@ stdenv.mkDerivation (finalAttrs: {
  nativeBuildInputs =
    [
      cmake
      pkg-config
    ]
    ++ lib.optionals fortranSupport [
      gfortran
@@ -83,6 +85,7 @@ stdenv.mkDerivation (finalAttrs: {
      (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
      (lib.cmakeBool "BUILD_STATIC_LIBS" stdenv.hostPlatform.isStatic)
      (lib.cmakeBool "XSDK_ENABLE_Fortran" fortranSupport)
      (lib.cmakeBool "BLA_PREFER_PKGCONFIG" true)
      (lib.cmakeBool "TPL_ENABLE_INTERNAL_BLASLIB" false)
      (lib.cmakeBool "TPL_ENABLE_LAPACKLIB" true)
      (lib.cmakeBool "TPL_ENABLE_PARMETISLIB" withParmetis)