File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -22,4 +22,9 @@ if(WIN32)
22
22
set (HAVE_D3D11 ON )
23
23
set (HAVE_D3D10 ON )
24
24
set (HAVE_D3D9 ON )
25
+
26
+ if (HAVE_OPENCL AND WITH_OPENCL_D3D11_NV AND EXISTS "${OPENCL_INCLUDE_DIR} /CL/cl_d3d11_ext.h" )
27
+ set (HAVE_OPENCL_D3D11_NV ON )
28
+ endif ()
29
+
25
30
endif ()
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ mark_as_advanced(OPENCL_INCLUDE_DIR OPENCL_LIBRARY)
11
11
12
12
if (OPENCL_FOUND )
13
13
14
- if (WITH_OPENCL_D3D11_NV AND EXISTS "${OPENCL_INCLUDE_DIR} /CL/cl_d3d11_ext.h" )
15
- set (HAVE_OPENCL_D3D11_NV ON )
16
- endif ()
17
-
18
14
if (OPENCL_LIBRARY )
19
15
set (HAVE_OPENCL_STATIC ON )
20
16
set (OPENCL_LIBRARIES "${OPENCL_LIBRARY} " )
@@ -82,4 +78,7 @@ if(OPENCL_FOUND)
82
78
list (APPEND OPENCL_INCLUDE_DIRS "${CLAMDBLAS_INCLUDE_DIR} " )
83
79
endif ()
84
80
endif ()
81
+
82
+ # check WITH_OPENCL_D3D11_NV is located in OpenCVDetectDirectX.cmake file
83
+
85
84
endif ()
You can’t perform that action at this time.
0 commit comments