From bb118d230d1a159fea024e6fc880362b0a2c10d2 Mon Sep 17 00:00:00 2001 From: zhangyi Date: Wed, 25 Sep 2024 21:12:30 +0800 Subject: [PATCH] build: enable library-only build for nghttp2 Add the option to build nghttp2 as a static library only, simplifying integration for projects that do not require shared libraries. --- cmake/GetNghttp2.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/GetNghttp2.cmake b/cmake/GetNghttp2.cmake index e9e389d47..255322fbf 100644 --- a/cmake/GetNghttp2.cmake +++ b/cmake/GetNghttp2.cmake @@ -28,6 +28,7 @@ if(NOT nghttp2_POPULATED) set(BUILD_SHARED_LIBS OFF) set(BUILD_STATIC_LIBS ON) + set(ENABLE_LIB_ONLY ON) # Avoid name conflict set(nghttp2_CMAKE_FILE "${nghttp2_SOURCE_DIR}/CMakeLists.txt")