summaryrefslogtreecommitdiff
path: root/user/opencv/cmake-license.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/opencv/cmake-license.patch')
-rw-r--r--user/opencv/cmake-license.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/opencv/cmake-license.patch b/user/opencv/cmake-license.patch
new file mode 100644
index 000000000..be40f4edf
--- /dev/null
+++ b/user/opencv/cmake-license.patch
@@ -0,0 +1,12 @@
+We remove the 3rdparty dir in build, and we don't need the OpenCL license.
+
+--- opencv-4.1.0/cmake/OpenCVDetectOpenCL.cmake.old 2019-04-07 17:09:10.000000000 +0000
++++ opencv-4.1.0/cmake/OpenCVDetectOpenCL.cmake 2019-07-20 20:21:37.467680107 +0000
+@@ -5,7 +5,6 @@
+ else()
+ set(OPENCL_LIBRARY "" CACHE STRING "OpenCL library")
+ set(OPENCL_INCLUDE_DIR "${OpenCV_SOURCE_DIR}/3rdparty/include/opencl/1.2" CACHE PATH "OpenCL include directory")
+- ocv_install_3rdparty_licenses(opencl-headers "${OpenCV_SOURCE_DIR}/3rdparty/include/opencl/LICENSE.txt")
+ endif()
+ mark_as_advanced(OPENCL_INCLUDE_DIR OPENCL_LIBRARY)
+