Update opencv to 4.5.5 (#2035628)
parent
c0ffc90083
commit
7a7944b9e7
@ -0,0 +1,28 @@
|
|||||||
|
From 81a6d1b0d4d93a3330cc99fbb1601c90b9516a9c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexander Alekhin <alexander.a.alekhin@gmail.com>
|
||||||
|
Date: Thu, 2 Dec 2021 13:32:59 +0000
|
||||||
|
Subject: [PATCH] cmake: update SOVERSION
|
||||||
|
|
||||||
|
- OpenCV 4.x doesn't guarantee or maintain ABI compatibility
|
||||||
|
- We should increase SO version on each release
|
||||||
|
---
|
||||||
|
cmake/OpenCVVersion.cmake | 6 ++++--
|
||||||
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/cmake/OpenCVVersion.cmake b/cmake/OpenCVVersion.cmake
|
||||||
|
index a2b4926cf0d2..6ffaab94cf02 100644
|
||||||
|
--- a/cmake/OpenCVVersion.cmake
|
||||||
|
+++ b/cmake/OpenCVVersion.cmake
|
||||||
|
@@ -10,8 +10,10 @@ set(OPENCV_VERSION_PLAIN "${OPENCV_VERSION_MAJOR}.${OPENCV_VERSION_MINOR}.${OPEN
|
||||||
|
|
||||||
|
set(OPENCV_VERSION "${OPENCV_VERSION_PLAIN}${OPENCV_VERSION_STATUS}")
|
||||||
|
|
||||||
|
-set(OPENCV_SOVERSION "${OPENCV_VERSION_MAJOR}.${OPENCV_VERSION_MINOR}")
|
||||||
|
-set(OPENCV_LIBVERSION "${OPENCV_VERSION_MAJOR}.${OPENCV_VERSION_MINOR}.${OPENCV_VERSION_PATCH}")
|
||||||
|
+string(REGEX MATCH "[0-9][0-9]$" OPENCV_VERSION_MINOR_2DIGITS "00${OPENCV_VERSION_MINOR}")
|
||||||
|
+string(REGEX MATCH "[0-9][0-9]$" OPENCV_VERSION_PATCH_2DIGITS "00${OPENCV_VERSION_PATCH}")
|
||||||
|
+ocv_update(OPENCV_SOVERSION "${OPENCV_VERSION_MAJOR}${OPENCV_VERSION_MINOR_2DIGITS}")
|
||||||
|
+ocv_update(OPENCV_LIBVERSION "${OPENCV_VERSION_MAJOR}.${OPENCV_VERSION_MINOR}.${OPENCV_VERSION_PATCH}")
|
||||||
|
|
||||||
|
# create a dependency on the version file
|
||||||
|
# we never use the output of the following command but cmake will rerun automatically if the version file changes
|
@ -1,8 +0,0 @@
|
|||||||
--- opencv_contrib-4.5.4/modules/cvv/CMakeLists.txt.orig 2021-10-10 20:30:59.898095647 +0100
|
|
||||||
+++ opencv_contrib-4.5.4/modules/cvv/CMakeLists.txt 2021-10-10 20:31:11.609057069 +0100
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-if(NOT HAVE_QT5 OR NOT HAVE_CXX11)
|
|
||||||
+if(NOT HAVE_QT OR NOT HAVE_CXX11)
|
|
||||||
ocv_module_disable(cvv)
|
|
||||||
return()
|
|
||||||
endif()
|
|
Loading…
Reference in new issue