vendor.patch 856 B

1234567891011121314151617181920212223242526
  1. diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
  2. index 2f7e31c..3e3d7fb 100644
  3. --- a/lib/CMakeLists.txt
  4. +++ b/lib/CMakeLists.txt
  5. @@ -60,12 +60,12 @@ set(nghttp3_SOURCES
  6. nghttp3_opl.c
  7. nghttp3_objalloc.c
  8. nghttp3_unreachable.c
  9. - sfparse/sfparse.c
  10. )
  11. # Public shared library
  12. if(ENABLE_SHARED_LIB)
  13. add_library(nghttp3 SHARED ${nghttp3_SOURCES})
  14. + target_link_libraries(nghttp3 sfparse)
  15. set_target_properties(nghttp3 PROPERTIES
  16. COMPILE_FLAGS "${WARNCFLAGS}"
  17. VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION}
  18. @@ -81,6 +81,7 @@ endif()
  19. if(ENABLE_STATIC_LIB)
  20. # Public static library
  21. add_library(nghttp3_static STATIC ${nghttp3_SOURCES})
  22. + target_link_libraries(nghttp3_static sfparse)
  23. set_target_properties(nghttp3_static PROPERTIES
  24. COMPILE_FLAGS "${WARNCFLAGS}"
  25. VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION}