Don't use git for version information.
authorBas Couwenberg <sebastic@debian.org>
Sun, 8 Sep 2024 04:20:04 +0000 (06:20 +0200)
committerBas Couwenberg <sebastic@debian.org>
Sun, 8 Sep 2024 04:20:04 +0000 (06:20 +0200)
Forwarded: not-needed

Gbp-Pq: Name no-git-version.patch

cmake/vcs.cmake

index 062ab977cec21c32abb01e8b92e78671139d95dd..8996bc1162f3abb07c0983e1d99ce9fb45d005bb 100644 (file)
@@ -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})