1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 5a13333..2dd274c 100644
5 @@ -431,6 +431,9 @@ if(USE_NGHTTP2)
6 find_package(NGHTTP2 REQUIRED)
7 include_directories(${NGHTTP2_INCLUDE_DIRS})
8 list(APPEND CURL_LIBS ${NGHTTP2_LIBRARIES})
9 + if(NOT BUILD_SHARED_LIBS)
10 + add_definitions(-DNGHTTP2_STATICLIB)
14 function(CheckQuicSupportInOpenSSL)