Skip to content

CMake: Fix Building With Shallow Checkout

Simon Spannagel requested to merge fix_version_depth1 into master

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)

Merge request reports