gtirb icon indicating copy to clipboard operation
gtirb copied to clipboard

cmake: fix python version comparison due to whitespace

Open katrinafyi opened this issue 2 years ago • 0 comments

Previously, there were warnings such as:

CMake Warning at CMakeLists.txt:131 (message):
  /usr/bin/python3.11 --version is 3.11.7

  , which is less then the minimum required, 3.5.2; disabling building of
  API.

The presence of whitespace turns VERSION_LESS into a lexicographic comparison, so python versions >=3.10 incorrectly compare less.

This change should fix this.

(using cmake 3.28.1)

katrinafyi avatar Feb 06 '24 02:02 katrinafyi