ceres-solver: clean up cmake configuration (#42661)

No need to explicitely set cmakeFlags, specifying the eigen library in the
build inputs is enough.
This commit is contained in:
timor 2018-06-28 11:04:53 +02:00 committed by Orivej Desh
parent b7c97e6267
commit ba15c00e98

View File

@ -20,19 +20,13 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake ];
buildInputs = [ glog ]
buildInputs = [ eigen glog ]
++ stdenv.lib.optional (google-gflags != null) google-gflags;
inherit eigen;
doCheck = runTests;
checkTarget = "test";
cmakeFlags = "
-DEIGEN_INCLUDE_DIR=${eigen}/include/eigen3
";
meta = with stdenv.lib; {
description = "C++ library for modeling and solving large, complicated optimization problems";
license = licenses.bsd3;