Fix build with VS2022 17.10.x (#5575)

* Fix dep build with latest vs2022

* Fix opencv build with latest vs2022
This commit is contained in:
Noisyfox
2024-06-04 19:59:23 +08:00
committed by GitHub
parent 99544f9104
commit a877d642f6
3 changed files with 55 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ endif ()
orcaslicer_add_cmake_project(OpenCV
URL https://github.com/opencv/opencv/archive/refs/tags/4.6.0.tar.gz
URL_HASH SHA256=1ec1cba65f9f20fe5a41fda1586e01c70ea0c9a6d7b67c9e13edf0cfe2239277
PATCH_COMMAND git apply --directory ${BINARY_DIR_REL}/dep_OpenCV-prefix/src/dep_OpenCV --verbose --ignore-space-change --whitespace=fix ${CMAKE_CURRENT_LIST_DIR}/0001-vs2022.patch
CMAKE_ARGS
-DBUILD_SHARED_LIBS=0
-DBUILD_PERE_TESTS=OFF