]> the.earth.li Git - onak.git/commit
Support shallow git checkouts when configuring cmake
authorJonathan McDowell <noodles@earth.li>
Fri, 15 Sep 2023 02:59:00 +0000 (08:29 +0530)
committerJonathan McDowell <noodles@earth.li>
Fri, 15 Sep 2023 02:59:00 +0000 (08:29 +0530)
commit810840e09b049f96ac706abb1cd7d4fb8f1c03a2
treeb1fca2a031f6e8a54b17187f4903f33dab563253
parentb502f610c69279ee0f806d04489736a0abc771b0
Support shallow git checkouts when configuring cmake

git will bale out if we're using a shallow checkout with no tags. Just
fall back to the short commit hash when that happens, so we can still
try and identify when the build was from.
CMakeLists.txt