MRtrix3 / mrtrix3

MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density
http://www.mrtrix.org
Mozilla Public License 2.0
294 stars 181 forks source link

cmake: Fix for shallow clones #3000

Closed Lestropie closed 2 months ago

Lestropie commented 2 months ago

If performing a shallow git clone (eg. for a Docker image), cmake function FindVersion() here reports mismatch between git tag and base version. However git describe isn't yielding a mismatched tag: it's yielding an error message, the function is then comparing that error message to MRTRIX_BASE_VERSION, and compilation cannot proceed.