We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents edcd2c0 + 1b1246c commit ef1d4ebCopy full SHA for ef1d4eb
samples/opencl/CMakeLists.txt
@@ -18,7 +18,11 @@ ocv_check_dependencies(${OPENCV_OPENCL_SAMPLES_REQUIRED_DEPS})
18
19
if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
20
21
- find_package(OpenCL 1.2 REQUIRED)
+ find_package(OpenCL 1.2 QUIET)
22
+ if(NOT OpenCL_FOUND)
23
+ message(STATUS "OpenCL samples are skipped: OpenCL SDK is required")
24
+ return()
25
+ endif()
26
27
set(project "opencl")
28
string(TOUPPER "${project}" project_upper)
samples/opencl/opencl-opencv-interop.cpp
@@ -14,6 +14,8 @@
14
#include <iomanip>
15
#include <stdexcept>
16
17
+#define CL_USE_DEPRECATED_OPENCL_2_0_APIS // eliminate build warning
+
#if __APPLE__
#include <OpenCL/cl.h>
#else
0 commit comments