mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-14 15:31:38 +08:00
14 lines
617 B
Diff
14 lines
617 B
Diff
--- a/cmake/OpenCVUtils.cmake
|
|
+++ b/cmake/OpenCVUtils.cmake
|
|
@@ -1663,8 +1663,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)
|