diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ec925d53d..2af5a4045e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -347,7 +347,7 @@ elseif (WIN32) set(LIBUSB_LIBRARIES "${EXTERNAL_LIBRARY_FOLDER}/libusb/MS64/dll/libusb-1.0.lib" CACHE INTERNAL "") set(LIBUSB_DLL_DIR "${EXTERNAL_LIBRARY_FOLDER}/libusb/MS64/dll" CACHE INTERNAL "") -if(VS2019) + if(VS2022 OR VS2019) set(OpenCV_DIR "${EXTERNAL_LIBRARY_FOLDER}/opencv4" CACHE INTERNAL "") else() set(OpenCV_DIR "${EXTERNAL_LIBRARY_FOLDER}/opencv" CACHE INTERNAL "") diff --git a/external/windows b/external/windows index c55d398080..eddef81835 160000 --- a/external/windows +++ b/external/windows @@ -1 +1 @@ -Subproject commit c55d3980808da97306e2b4feac452323854a39e4 +Subproject commit eddef8183524e5aaef978088427d4b22a5afb393