aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/opencv4/0008-devendor-quirc.patch
blob: 43945ea2a420b98a7d13b4568d017b849ecf8c6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -905,7 +905,7 @@ if(WITH_OPENVX)
 endif()
 
 if(WITH_QUIRC)
-  add_subdirectory(3rdparty/quirc)
+  find_package(quirc CONFIG REQUIRED)
   set(HAVE_QUIRC TRUE)
 endif()
 
--- a/modules/objdetect/CMakeLists.txt
+++ b/modules/objdetect/CMakeLists.txt
@@ -13,7 +13,5 @@ ocv_define_module(objdetect
 )
 
 if(HAVE_QUIRC)
-    get_property(QUIRC_INCLUDE GLOBAL PROPERTY QUIRC_INCLUDE_DIR)
-    ocv_include_directories(${QUIRC_INCLUDE})
-    ocv_target_link_libraries(${the_module} quirc)
+    ocv_target_link_libraries(${the_module} quirc::quirc)
 endif()