From 5f95827a5f693a1a0a7c50c104d6c3955455cb64 Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Tue, 12 Nov 2024 11:57:39 -0800 Subject: [PATCH] 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. --- cmake/OpenCVDetectDirectML.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVDetectDirectML.cmake b/cmake/OpenCVDetectDirectML.cmake index 0fc71eca03..0394678a0c 100644 --- a/cmake/OpenCVDetectDirectML.cmake +++ b/cmake/OpenCVDetectDirectML.cmake @@ -6,7 +6,7 @@ if(WIN32) OUTPUT_VARIABLE TRY_OUT ) 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() endif() set(HAVE_DIRECTML ON)