ceres-solver: Add and propagate metis dependency

SuiteSparse depends on METIS anyway, so we might as well enable METIS in
ceres-solver as well.
This commit is contained in:
Tobias Markus 2023-02-12 23:12:51 +01:00
parent 0621648513
commit 8db2dbb6cb

View file

@ -8,6 +8,7 @@
, gflags
, glog
, suitesparse
, metis
, runTests ? false
, enableStatic ? stdenv.hostPlatform.isStatic
, withBlas ? true
@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = lib.optional runTests gflags;
propagatedBuildInputs = [ eigen glog ]
++ lib.optionals withBlas [ blas suitesparse ];
++ lib.optionals withBlas [ blas suitesparse metis ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=${if enableStatic then "OFF" else "ON"}"