You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
418 B
CMake
16 lines
418 B
CMake
2 years ago
|
set(OpenCV_VERSION 4.5.5)
|
||
|
set(PACKAGE_VERSION ${OpenCV_VERSION})
|
||
|
|
||
|
set(PACKAGE_VERSION_EXACT False)
|
||
|
set(PACKAGE_VERSION_COMPATIBLE False)
|
||
|
|
||
|
if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
|
||
|
set(PACKAGE_VERSION_EXACT True)
|
||
|
set(PACKAGE_VERSION_COMPATIBLE True)
|
||
|
endif()
|
||
|
|
||
|
if(PACKAGE_FIND_VERSION_MAJOR EQUAL 4
|
||
|
AND PACKAGE_FIND_VERSION VERSION_LESS PACKAGE_VERSION)
|
||
|
set(PACKAGE_VERSION_COMPATIBLE True)
|
||
|
endif()
|