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