Merge #134546: opencv: fix OpenCL linkage for 4.x
This commit is contained in:
commit
2d89598250
@ -13,6 +13,7 @@
|
||||
, gflags
|
||||
, protobuf
|
||||
, config
|
||||
, ocl-icd
|
||||
|
||||
, enableJPEG ? true
|
||||
, libjpeg
|
||||
@ -313,6 +314,8 @@ stdenv.mkDerivation {
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"-DWITH_OPENCL=OFF"
|
||||
"-DWITH_LAPACK=OFF"
|
||||
] ++ lib.optionals (!stdenv.isDarwin) [
|
||||
"-DOPENCL_LIBRARY=${ocl-icd}/lib/libOpenCL.so"
|
||||
] ++ lib.optionals enablePython [
|
||||
"-DOPENCV_SKIP_PYTHON_LOADER=ON"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user