Various QoL (refactored RTABMAP_VERSION_COMPARE) (#1695)

This commit is contained in:
matlabbe
2026-05-04 20:12:31 -07:00
committed by GitHub
parent 37f8fa63c5
commit c1ef13a8d6
6 changed files with 18 additions and 7 deletions

View File

@@ -25,6 +25,14 @@ SET(RTABMAP_MINOR_VERSION 23)
SET(RTABMAP_PATCH_VERSION 5)
SET(RTABMAP_VERSION
${RTABMAP_MAJOR_VERSION}.${RTABMAP_MINOR_VERSION}.${RTABMAP_PATCH_VERSION})
# Make sure we have valid version so that RTABMAP_VERSION_COMPARE logic in Version.h works
IF(RTABMAP_MINOR_VERSION GREATER 99)
MESSAGE(FATAL_ERROR "RTABMAP_MINOR_VERSION must be < 100, bump major version and restart minor to 0!")
ENDIF()
IF(RTABMAP_PATCH_VERSION GREATER 99)
MESSAGE(FATAL_ERROR "RTABMAP_PATCH_VERSION must be < 100, bump minor version and restart patch to 0!")
ENDIF()
SET(PROJECT_VERSION "${RTABMAP_VERSION}")