Skip to content

Commit

Permalink
[opencv4] fix webp include dir (microsoft#31045)
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort authored Apr 24, 2023
1 parent b9ef89b commit 7dc921f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
13 changes: 13 additions & 0 deletions ports/opencv4/0003-force-package-requirements.patch
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,16 @@
if(NOT GDCM_FOUND)
set(HAVE_GDCM NO)
ocv_clear_vars(GDCM_VERSION GDCM_LIBRARIES)
diff --git a/modules/imgcodecs/CMakeLists.txt b/modules/imgcodecs/CMakeLists.txt
index 213667a..4052387 100644
--- a/modules/imgcodecs/CMakeLists.txt
+++ b/modules/imgcodecs/CMakeLists.txt
@@ -24,7 +24,7 @@ endif()

if(HAVE_WEBP)
add_definitions(-DHAVE_WEBP)
- ocv_include_directories(${WEBP_INCLUDE_DIR})
+ ocv_include_directories(${WEBP_INCLUDE_DIRS})
list(APPEND GRFMT_LIBS ${WEBP_LIBRARIES})
endif()

2 changes: 1 addition & 1 deletion ports/opencv4/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opencv4",
"version": "4.7.0",
"port-version": 5,
"port-version": 6,
"description": "computer vision library",
"homepage": "https://github.com/opencv/opencv",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5806,7 +5806,7 @@
},
"opencv4": {
"baseline": "4.7.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": "d435a87c7a3f4dd38d623503d5200abe65c249d1",
"version": "4.7.0",
"port-version": 6
},
{
"git-tree": "0c3c175e672cc3a6f0d1465adba8a40a042ff717",
"version": "4.7.0",
Expand Down

0 comments on commit 7dc921f

Please sign in to comment.