CMake: Fix Building With Shallow Checkout
When doing git clone --depth 1
with this repository, currently the build configuration fails with
-- Git project directory is clean.
-- Building Corryvreckan version fatal: No names found, cannot describe anything..
CMake Error at CMakeLists.txt:35 (PROJECT):
VERSION "." format invalid.
-- Configuring incomplete, errors occurred!
because it finds a git repository but no tags. This MR ports allpix-squared/allpix-squared!888 (merged)