Sha256: 1258d26dd0a1a23c37f02d8f8cdaa58e5e1fe4a6ad71863e1a573faff4abdbbd

Contents?: true

Size: 939 Bytes

Versions: 12

Compression:

Stored size: 939 Bytes

Contents

# Optional external dependency: http-parser
if(USE_HTTP_PARSER STREQUAL "system")
	find_package(HTTPParser)

	if(HTTP_PARSER_FOUND AND HTTP_PARSER_VERSION_MAJOR EQUAL 2)
		list(APPEND LIBGIT2_SYSTEM_INCLUDES ${HTTP_PARSER_INCLUDE_DIRS})
		list(APPEND LIBGIT2_SYSTEM_LIBS ${HTTP_PARSER_LIBRARIES})
		list(APPEND LIBGIT2_PC_LIBS "-lhttp_parser")
		add_feature_info(http-parser ON "http-parser support (system)")
	else()
		message(FATAL_ERROR "http-parser support was requested but not found")
	endif()
else()
	message(STATUS "http-parser version 2 was not found or disabled; using bundled 3rd-party sources.")
	add_subdirectory("${PROJECT_SOURCE_DIR}/deps/http-parser" "${PROJECT_BINARY_DIR}/deps/http-parser")
	list(APPEND LIBGIT2_DEPENDENCY_INCLUDES "${PROJECT_SOURCE_DIR}/deps/http-parser")
	list(APPEND LIBGIT2_DEPENDENCY_OBJECTS "$<TARGET_OBJECTS:http-parser>")
	add_feature_info(http-parser ON "http-parser support (bundled)")
endif()

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rugged-1.7.2 vendor/libgit2/cmake/SelectHTTPParser.cmake
rugged-1.6.5 vendor/libgit2/cmake/SelectHTTPParser.cmake
rugged-1.7.1 vendor/libgit2/cmake/SelectHTTPParser.cmake
rugged-1.6.3 vendor/libgit2/cmake/SelectHTTPParser.cmake
rugged-1.6.2 vendor/libgit2/cmake/SelectHTTPParser.cmake
rugged-1.5.1 vendor/libgit2/cmake/SelectHTTPParser.cmake
rugged-1.4.5 vendor/libgit2/cmake/SelectHTTPParser.cmake
rugged-1.5.0.1 vendor/libgit2/cmake/SelectHTTPParser.cmake
rugged-1.5.0 vendor/libgit2/cmake/SelectHTTPParser.cmake
rugged-1.4.4 vendor/libgit2/cmake/SelectHTTPParser.cmake
rugged-1.4.3 vendor/libgit2/cmake/SelectHTTPParser.cmake
rugged-1.4.2 vendor/libgit2/cmake/SelectHTTPParser.cmake