From: Bas Couwenberg Date: Sun, 8 Sep 2024 04:20:04 +0000 (+0200) Subject: Don't use git for version information. X-Git-Tag: archive/raspbian/0.20.0+ds-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cbf20289ffa92c047d86a90f955b0e9b1799d632;p=merkaartor.git Don't use git for version information. Forwarded: not-needed Gbp-Pq: Name no-git-version.patch --- diff --git a/cmake/vcs.cmake b/cmake/vcs.cmake index 062ab97..8996bc1 100644 --- a/cmake/vcs.cmake +++ b/cmake/vcs.cmake @@ -1,5 +1,5 @@ -if (EXISTS "${CMAKE_SOURCE_DIR}/.git") +if (EXISTS "${CMAKE_SOURCE_DIR}/.git" AND NOT EXISTS "${CMAKE_SOURCE_DIR}/debian") # If git directory is present, we require git executable and gather our info from git commands. find_package(Git) if (NOT ${GIT_FOUND})