File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -466,8 +466,9 @@ IF (USE_EXT_HTTP_PARSER AND HTTP_PARSER_FOUND AND HTTP_PARSER_VERSION_MAJOR EQUA
466466 LIST (APPEND LIBGIT2_PC_LIBS "-lhttp_parser" )
467467ELSE ()
468468 MESSAGE (STATUS "http-parser version 2 was not found or disabled; using bundled 3rd-party sources." )
469+ ADD_SUBDIRECTORY ("${CMAKE_SOURCE_DIR} /deps/http-parser" "${CMAKE_BINARY_DIR} /deps/http-parser" )
469470 LIST (APPEND LIBGIT2_INCLUDES "${CMAKE_SOURCE_DIR} /deps/http-parser" )
470- FILE (GLOB SRC_HTTP " ${CMAKE_SOURCE_DIR} /deps/ http-parser/*.c" " ${CMAKE_SOURCE_DIR} /deps/http-parser/*.h" )
471+ LIST ( APPEND LIBGIT2_LIBS http-parser)
471472ENDIF ()
472473
473474# Optional external dependency: zlib
@@ -600,7 +601,7 @@ ENDIF()
600601
601602CONFIGURE_FILE (src/features.h.in git2/sys/features.h)
602603
603- SET (GIT2INTERNAL_OBJECTS ${SRC_H} ${SRC_GIT2} ${SRC_OS} ${SRC_ZLIB} ${SRC_HTTP} ${ SRC_SSH} ${SRC_SHA1} )
604+ SET (GIT2INTERNAL_OBJECTS ${SRC_H} ${SRC_GIT2} ${SRC_OS} ${SRC_ZLIB} ${SRC_SSH} ${SRC_SHA1} )
604605
605606LIST (APPEND LIBGIT2_INCLUDES ${CMAKE_CURRENT_BINARY_DIR} "${CMAKE_SOURCE_DIR} /src" "${CMAKE_SOURCE_DIR} /include" )
606607
Original file line number Diff line number Diff line change 1+ FILE (GLOB SRC_HTTP "*.c" "*.h" )
2+
3+ ADD_LIBRARY (http-parser STATIC ${SRC_HTTP} )
You can’t perform that action at this time.
0 commit comments