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
|
@ -8,6 +8,7 @@
|
||||||
, gflags
|
, gflags
|
||||||
, glog
|
, glog
|
||||||
, suitesparse
|
, suitesparse
|
||||||
|
, metis
|
||||||
, runTests ? false
|
, runTests ? false
|
||||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||||
, withBlas ? true
|
, withBlas ? true
|
||||||
|
@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = lib.optional runTests gflags;
|
buildInputs = lib.optional runTests gflags;
|
||||||
propagatedBuildInputs = [ eigen glog ]
|
propagatedBuildInputs = [ eigen glog ]
|
||||||
++ lib.optionals withBlas [ blas suitesparse ];
|
++ lib.optionals withBlas [ blas suitesparse metis ];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DBUILD_SHARED_LIBS=${if enableStatic then "OFF" else "ON"}"
|
"-DBUILD_SHARED_LIBS=${if enableStatic then "OFF" else "ON"}"
|
||||||
|
|
Loading…
Reference in a new issue