aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/opencv4/0014-fix-cmake-in-list.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/opencv4/0014-fix-cmake-in-list.patch')
-rw-r--r--vcpkg/ports/opencv4/0014-fix-cmake-in-list.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/opencv4/0014-fix-cmake-in-list.patch b/vcpkg/ports/opencv4/0014-fix-cmake-in-list.patch
new file mode 100644
index 0000000..7d7b1b2
--- /dev/null
+++ b/vcpkg/ports/opencv4/0014-fix-cmake-in-list.patch
@@ -0,0 +1,13 @@
+--- a/cmake/OpenCVUtils.cmake
++++ b/cmake/OpenCVUtils.cmake
+@@ -1667,8 +1667,8 @@ function(ocv_install_used_external_targets)
+ if(NOT BUILD_SHARED_LIBS
+ AND NOT (CMAKE_VERSION VERSION_LESS "3.13.0") # upgrade CMake: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/2152
+ )
+- foreach(tgt in ${ARGN})
+- if(tgt MATCHES "^ocv\.3rdparty\.")
++ foreach(tgt ${ARGN})
++ if(tgt MATCHES "^ocv[.]3rdparty[.]")
+ list(FIND __OPENCV_EXPORTED_EXTERNAL_TARGETS "${tgt}" _found)
+ if(_found EQUAL -1) # don't export target twice
+ install(TARGETS ${tgt} EXPORT OpenCVModules)