File: Dont-error-if-git-submodule-was-not-called.patch

package info (click to toggle)
gnudatalanguage 1.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 80,368 kB
  • sloc: cpp: 189,797; ansic: 46,721; sh: 677; python: 474; makefile: 146; xml: 69; f90: 28
file content (23 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Ole Streicher <olebole@debian.org>
Date: Thu, 5 Oct 2023 20:41:05 +0200
Subject: Dont error if git submodule was not called

---
 CMakeLists.txt | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3f4761b..4798709 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,10 +9,6 @@
 
 cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
 
-if (NOT EXISTS "${CMAKE_SOURCE_DIR}/src/whereami/.git" )
-  message(FATAL_ERROR "The src/whereami git submodule is not initialised.\n Please run `git submodule update --init`")
-endif()
-
 # create version string based on git metadata (based on https://github.com/nocnokneo/cmake-git-versioning-example)
 # in case version.hpp does not exist (it is shipped in GDL tarballs but not stored in the repo)
 if (NOT EXISTS "${CMAKE_SOURCE_DIR}/src/version.hpp")