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")
|