File: 0001-Prevent-FetchContent_Declare-with-empty-URL.patch

package info (click to toggle)
grcompiler 5.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 24,020 kB
  • sloc: cpp: 48,200; ansic: 7,670; sh: 4,427; makefile: 197; xml: 190; perl: 127; sed: 21
file content (23 lines) | stat: -rw-r--r-- 722 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: Bastian Germann <bage@debian.org>
Date: Tue, 23 Aug 2022 20:52:18 +0200
Forwarded: no
Subject: Prevent FetchContent_Declare with empty URL

CMake checks the URL parameter to contain a supported mechanism.
On Linux, this is empty, so the function call has to be prevented.
---
 compiler/CMakeLists.txt | 1 -
 1 file changed, 1 deletion(-)

diff --git a/compiler/CMakeLists.txt b/compiler/CMakeLists.txt
index 2b49253..20ece0b 100644
--- a/compiler/CMakeLists.txt
+++ b/compiler/CMakeLists.txt
@@ -1,7 +1,6 @@
 project(compiler VERSION 5.2.1)
 cmake_policy(SET CMP0074 NEW)
 
-FetchContent_Declare(icu URL ${ICU_URL})
 
 if (DEFINED ICU_URL OR DEFINED FETCHCONTENT_SOURCE_DIR_ICU)
     FetchContent_GetProperties(icu)