opencv: disable dnn_modern on darwin

This commit is contained in:
Bas van Dijk 2017-12-31 14:39:33 +01:00 committed by Orivej Desh
parent 72a76fe8c3
commit 6919867b3b

View File

@ -232,7 +232,13 @@ stdenv.mkDerivation rec {
"-DCUDA_FAST_MATH=ON"
"-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/gcc"
]
++ lib.optionals stdenv.isDarwin ["-DWITH_OPENCL=OFF" "-DWITH_LAPACK=OFF"];
++ lib.optionals stdenv.isDarwin [
"-DWITH_OPENCL=OFF"
"-DWITH_LAPACK=OFF"
# On OS X the tiny-dnn-1.0.0a3 dependency of dnn_modern fails to build.
"-DBUILD_opencv_dnn_modern=OFF"
];
enableParallelBuilding = true;