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:
parent
0621648513
commit
8db2dbb6cb
1 changed files with 2 additions and 1 deletions
|
@ -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"}"
|
||||
|
|
Loading…
Reference in a new issue