Files
bun.sh/cmake/targets/BuildLibgit2.cmake
Claude Bot 6653c96f99 fix(bun:git): Add libgit2 submodule and fix cmake configuration
- Add libgit2 as a git submodule in vendor/
- Fix cmake configuration to use proper ARGS instead of CMAKE_ARGS
- Use correct TARGETS (libgit2package) to build static library
- Disable NTLM and GSSAPI which require HTTPS backend

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 09:24:34 +00:00

24 lines
413 B
CMake

register_cmake_command(
TARGET
libgit2
TARGETS
libgit2package
LIBRARIES
git2
ARGS
-DBUILD_SHARED_LIBS=OFF
-DBUILD_TESTS=OFF
-DBUILD_CLI=OFF
-DUSE_SSH=OFF
-DUSE_HTTPS=OFF
-DUSE_NTLMCLIENT=OFF
-DUSE_GSSAPI=OFF
-DUSE_SHA1=Builtin
-DUSE_SHA256=Builtin
-DUSE_BUNDLED_ZLIB=ON
-DREGEX_BACKEND=builtin
-DUSE_HTTP_PARSER=builtin
INCLUDES
include
)