Skip to content

Remove component size limit for version comparisons

David Gobbi requested to merge dgobbi/cmake:unlimited-version-compare into master

The VersionCompare() function converted version components to 'unsigned long' prior to comparing them. Any version components too large for 'unsigned long' were treated as equal to ULONG_MAX. This impacted operators like VERSION_GREATER, VERSION_LESS, and VERSION_EQUAL. The new code does not limit the length of the version components for valid comparisons.

Closes: #24510 (closed)

Edited by David Gobbi

Merge request reports