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 09:04:53 +00:00
committed by Orivej Desh
parent b7c97e6267
commit ba15c00e98
@@ -20,19 +20,13 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ glog ] buildInputs = [ eigen glog ]
++ stdenv.lib.optional (google-gflags != null) google-gflags; ++ stdenv.lib.optional (google-gflags != null) google-gflags;
inherit eigen;
doCheck = runTests; doCheck = runTests;
checkTarget = "test"; checkTarget = "test";
cmakeFlags = "
-DEIGEN_INCLUDE_DIR=${eigen}/include/eigen3
";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "C++ library for modeling and solving large, complicated optimization problems"; description = "C++ library for modeling and solving large, complicated optimization problems";
license = licenses.bsd3; license = licenses.bsd3;