mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
fix version in version.cmake
This commit is contained in:
parent
6259c9ac6a
commit
4f89292aab
@ -2,7 +2,7 @@ SET(OpenCV_VERSION @OPENCV_VERSION@)
|
||||
SET(OpenCV_VERSION_MAJOR @OPENCV_VERSION_MAJOR@)
|
||||
SET(OpenCV_VERSION_MINOR @OPENCV_VERSION_MINOR@)
|
||||
SET(OpenCV_VERSION_PATCH @OPENCV_VERSION_PATCH@)
|
||||
set(PACKAGE_VERSION OpenCV_VERSION)
|
||||
set(PACKAGE_VERSION ${OpenCV_VERSION})
|
||||
if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL ${OpenCV_VERSION_MAJOR})
|
||||
set(PACKAGE_VERSION_COMPATIBLE True) # compatible with any version @OPENCV_VERSION_MAJOR@.x.x
|
||||
if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL ${OpenCV_VERSION_MINOR})
|
||||
|
Loading…
Reference in New Issue
Block a user