File: remove-duplicate-target.patch

package info (click to toggle)
llhttp 9.3.3~really9.3.0%2B~cs12.11.8-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,960 kB
  • sloc: ansic: 1,400; javascript: 737; makefile: 116
file content (23 lines) | stat: -rw-r--r-- 686 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
From 1f23986da6337a55682dda268457f2dc27f5900f Mon Sep 17 00:00:00 2001
From: Po-Chuan Hsieh <sunpoet@sunpoet.net>
Date: Sun, 1 Jun 2025 15:27:27 +0800
Subject: [PATCH] Remove duplicate target (#675)

llhttp_shared is already set in line 87 when BUILD_SHARED_LIBS is true.
---
 CMakeLists.txt | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -78,9 +78,7 @@
   add_library(llhttp_static STATIC
       ${llhttp_src}
   )
-  if(BUILD_SHARED_LIBS)
-    add_library(llhttp::llhttp ALIAS llhttp_shared)
-  else()
+  if(NOT BUILD_SHARED_LIBS)
     add_library(llhttp::llhttp ALIAS llhttp_static)
   endif()
   config_library(llhttp_static)