ceres-solver: fix darwin build (#46626)

The Basel BUILD file conflicts with the cmake build directory on
case-insensitive filesystems, eg. darwin.

/cc ZHF #45961
This commit is contained in:
Daiderd Jordan 2018-09-13 23:44:14 +02:00 committed by xeji
parent 68956555c1
commit 807b0105b4

View File

@ -2,7 +2,7 @@
, eigen , eigen
, fetchurl , fetchurl
, cmake , cmake
, google-gflags ? null , google-gflags
, glog , glog
, runTests ? false , runTests ? false
}: }:
@ -21,7 +21,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ eigen glog ] buildInputs = [ eigen glog ]
++ stdenv.lib.optional (google-gflags != null) google-gflags; ++ stdenv.lib.optional runTests google-gflags;
# The Basel BUILD file conflicts with the cmake build directory on
# case-insensitive filesystems, eg. darwin.
preConfigure = ''
rm BUILD
'';
doCheck = runTests; doCheck = runTests;