From b30792076cb61887a7fe27743f3d13d53479b6e0 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Mon, 19 May 2025 01:26:40 +0800 Subject: [PATCH] Remove duplicate target llhttp_shared is already set in line 87 when BUILD_SHARED_LIBS is true. --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fb106aa..2ed65d0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,9 +92,7 @@ if(BUILD_STATIC_LIBS) 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)