diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 2196dd0..ea839e5 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -60,7 +60,6 @@ set(nghttp3_SOURCES nghttp3_opl.c nghttp3_objalloc.c nghttp3_unreachable.c - sfparse/sfparse.c ) set(NGHTTP3_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}/generated") @@ -90,6 +89,7 @@ install( # Public shared library if(ENABLE_SHARED_LIB) add_library(nghttp3 SHARED ${nghttp3_SOURCES}) + target_link_libraries(nghttp3 sfparse) set_target_properties(nghttp3 PROPERTIES COMPILE_FLAGS "${WARNCFLAGS}" VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION} @@ -106,6 +106,7 @@ endif() if(ENABLE_STATIC_LIB) # Public static library add_library(nghttp3_static STATIC ${nghttp3_SOURCES}) + target_link_libraries(nghttp3_static sfparse) set_target_properties(nghttp3_static PROPERTIES COMPILE_FLAGS "${WARNCFLAGS}" VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION}