File: disable-submodule-check.patch

package info (click to toggle)
apitrace 13.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,752 kB
  • sloc: cpp: 183,974; python: 33,969; ansic: 25,566; sh: 169; makefile: 88; sed: 3
file content (24 lines) | stat: -rw-r--r-- 857 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: David Heidelberg <david@ixit.cz>
Date: Mon, 23 May 2022 18:25:13 +0200
Subject: Drop requirement for submodules

Since we don't ship bundled third-party code, these files would be missing 
and the builds would fail despite the fact we're linking to the system libraries.

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

--- a/thirdparty/CMakeLists.txt
+++ b/thirdparty/CMakeLists.txt
@@ -26,10 +26,6 @@ foreach (path IN ITEMS
     zlib/README
     directxmath/LICENSE
 )
-    if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${path}")
-        message (SEND_ERROR "error: ${CMAKE_CURRENT_SOURCE_DIR}/${path} does not exist")
-        set (SUBMODULES_MISSING TRUE)
-    endif ()
 endforeach ()
 if (SUBMODULES_MISSING)
     message (FATAL_ERROR "Update Git submodules by running\ngit submodule update --init --depth 1 --recursive")