mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 13:39:08 +08:00
eb044d1eb5
* [OpenCV] bump to 4.5.1 and to 3.4.13 * [OpenCV] fix patches * [OpenCV] fix hdf5 integration * [OpenCV] devendor quirc * fix quirc for downstream ports * [quirc] fix target export * update version refs * [OpenMVG] fix regressions with new opencv * update version refs * fix quirc mismatch * update version refs
27 lines
957 B
Diff
27 lines
957 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 5810b0c..04315e3 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -771,7 +771,7 @@ if(WITH_OPENVX)
|
|
endif()
|
|
|
|
if(WITH_QUIRC)
|
|
- add_subdirectory(3rdparty/quirc)
|
|
+ find_package(quirc CONFIG REQUIRED)
|
|
set(HAVE_QUIRC TRUE)
|
|
endif()
|
|
# ----------------------------------------------------------------------------
|
|
diff --git a/modules/objdetect/CMakeLists.txt b/modules/objdetect/CMakeLists.txt
|
|
index 414e578..4f26d75 100644
|
|
--- a/modules/objdetect/CMakeLists.txt
|
|
+++ b/modules/objdetect/CMakeLists.txt
|
|
@@ -2,7 +2,5 @@ set(the_description "Object Detection")
|
|
ocv_define_module(objdetect opencv_core opencv_imgproc opencv_calib3d WRAP java python js)
|
|
|
|
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()
|