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

Fix building project with non-git repos #2997

Closed daljit46 closed 2 months ago

daljit46 commented 2 months ago

The logic in cmake/FindVersion.cmake was mistakenly assuming that a git repo has been checked out. This is not the case when building release tarballs. This PR fixes this by running the version matching logic only if the directory .git exists in the root directory of the project. Fixes #2987.

github-actions[bot] commented 2 months ago

clang-tidy review says "All clean, LGTM! :+1:"