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:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user