Skip to content

Commit b307920

Browse files
committed
Remove duplicate target
llhttp_shared is already set in line 87 when BUILD_SHARED_LIBS is true.
1 parent 36151b9 commit b307920

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ if(BUILD_STATIC_LIBS)
9292
add_library(llhttp_static STATIC
9393
${llhttp_src}
9494
)
95-
if(BUILD_SHARED_LIBS)
96-
add_library(llhttp::llhttp ALIAS llhttp_shared)
97-
else()
95+
if(NOT BUILD_SHARED_LIBS)
9896
add_library(llhttp::llhttp ALIAS llhttp_static)
9997
endif()
10098
config_library(llhttp_static)

0 commit comments

Comments
 (0)