Merge pull request #216399 from hesiod/ceres-solver-metis
ceres-solver: Add and propagate metis dependency
This commit is contained in:
commit
d46ca75ba8
|
@ -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