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
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.
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.