Add note for people debugging DirectML detection failures to check their Windows SDK version.

DirectML was first included with 10.0.18362.0, but dxcore.lib necessary to make the check pass was first in 10.0.19041.0.
pull/26452/head
Billy Robert O'Neal III 2 weeks ago
parent ff639d11d4
commit 5f95827a5f
  1. 2
      cmake/OpenCVDetectDirectML.cmake

@ -6,7 +6,7 @@ if(WIN32)
OUTPUT_VARIABLE TRY_OUT OUTPUT_VARIABLE TRY_OUT
) )
if(NOT __VALID_DIRECTML) if(NOT __VALID_DIRECTML)
message(STATUS "No support for DirectML (d3d12, dxcore, directml libs are required)") message(STATUS "No support for DirectML. d3d12, dxcore, directml libs are required, first bundled with Windows SDK 10.0.19041.0.")
return() return()
endif() endif()
set(HAVE_DIRECTML ON) set(HAVE_DIRECTML ON)

Loading…
Cancel
Save