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
, fetchurl
, cmake
, google-gflags ? null
, google-gflags
, glog
, runTests ? false
}:
@ -21,7 +21,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
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;