Fixed versioning bug: FIND_PACKAGE( OpenCV ) errors if no version specified
This commit is contained in:
parent
7fed582d9f
commit
e005570719
@ -4,11 +4,11 @@ set(PACKAGE_VERSION ${OpenCV_VERSION})
|
|||||||
set(PACKAGE_VERSION_EXACT False)
|
set(PACKAGE_VERSION_EXACT False)
|
||||||
set(PACKAGE_VERSION_COMPATIBLE False)
|
set(PACKAGE_VERSION_COMPATIBLE False)
|
||||||
|
|
||||||
if(${PACKAGE_FIND_VERSION} VERSION_EQUAL ${PACKAGE_VERSION})
|
if("${PACKAGE_FIND_VERSION}" VERSION_EQUAL ${PACKAGE_VERSION})
|
||||||
set(PACKAGE_VERSION_EXACT True)
|
set(PACKAGE_VERSION_EXACT True)
|
||||||
set(PACKAGE_VERSION_COMPATIBLE True)
|
set(PACKAGE_VERSION_COMPATIBLE True)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${PACKAGE_FIND_VERSION} VERSION_LESS ${PACKAGE_VERSION})
|
if("${PACKAGE_FIND_VERSION}" VERSION_LESS ${PACKAGE_VERSION})
|
||||||
set(PACKAGE_VERSION_COMPATIBLE True)
|
set(PACKAGE_VERSION_COMPATIBLE True)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user