2019-06-19 16:26:12 -07:00
|
|
|
set(mi_version_major 1)
|
2023-03-20 11:03:50 -07:00
|
|
|
set(mi_version_minor 8)
|
2024-05-16 18:52:29 -07:00
|
|
|
set(mi_version_patch 7)
|
2021-12-14 18:29:14 -08:00
|
|
|
set(mi_version ${mi_version_major}.${mi_version_minor})
|
2019-06-19 16:26:12 -07:00
|
|
|
|
|
|
|
set(PACKAGE_VERSION ${mi_version})
|
2020-09-14 11:13:03 +01:00
|
|
|
if(PACKAGE_FIND_VERSION_MAJOR)
|
|
|
|
if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "${mi_version_major}")
|
|
|
|
if ("${PACKAGE_FIND_VERSION_MINOR}" EQUAL "${mi_version_minor}")
|
|
|
|
set(PACKAGE_VERSION_EXACT TRUE)
|
|
|
|
elseif("${PACKAGE_FIND_VERSION_MINOR}" LESS "${mi_version_minor}")
|
|
|
|
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
|
|
else()
|
|
|
|
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
|
|
|
endif()
|
2019-06-19 16:26:12 -07:00
|
|
|
else()
|
|
|
|
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
|
|
|
endif()
|
|
|
|
endif()
|