Skip to content

Commit

Permalink
[OpenCV] Disable quality module on iOS to avoid find_package error (#…
Browse files Browse the repository at this point in the history
…27287)

* [opencv][ios] disable quality on iOS to avoid a configuration error

* ./vcpkg x-add-version --all
  • Loading branch information
russelltg authored Oct 19, 2022
1 parent 58f4874 commit 3fb6971
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ports/opencv4/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ endif()
# Build image quality module when building with 'contrib' feature and not UWP.
set(BUILD_opencv_quality OFF)
if("contrib" IN_LIST FEATURES)
if (VCPKG_TARGET_IS_UWP)
if (VCPKG_TARGET_IS_UWP OR VCPKG_TARGET_IS_IOS)
set(BUILD_opencv_quality OFF)
message(WARNING "The image quality module (quality) does not build for UWP, the module has been disabled.")
message(WARNING "The image quality module (quality) does not build for UWP or iOS, the module has been disabled.")
# The hdf module is silently disabled by OpenCVs buildsystem if HDF5 is not detected.
message(WARNING "The hierarchical data format module (hdf) depends on HDF5 which doesn't support UWP, the module has been disabled.")
message(WARNING "The hierarchical data format module (hdf) depends on HDF5 which doesn't support UWP or iOS, the module has been disabled.")
else()
set(BUILD_opencv_quality CMAKE_DEPENDS_IN_PROJECT_ONLY)
endif()
Expand Down
4 changes: 2 additions & 2 deletions ports/opencv4/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opencv4",
"version": "4.6.0",
"port-version": 5,
"port-version": 6,
"description": "computer vision library",
"homepage": "https://github.com/opencv/opencv",
"license": "Apache-2.0",
Expand Down Expand Up @@ -39,7 +39,7 @@
},
{
"name": "tesseract",
"platform": "!uwp & !(windows & (arm | arm64))"
"platform": "!uwp & !(windows & (arm | arm64)) & !ios"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5402,7 +5402,7 @@
},
"opencv4": {
"baseline": "4.6.0",
"port-version": 5
"port-version": 6
},
"opendnp3": {
"baseline": "3.1.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/opencv4.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9961bbcc88c934054f6137f3417bbd9cccf478d4",
"version": "4.6.0",
"port-version": 6
},
{
"git-tree": "fdfecadf1577e25595f58dbe2d6c26bd2cb99296",
"version": "4.6.0",
Expand Down

0 comments on commit 3fb6971

Please sign in to comment.