Force the legacy git backend to prevent build errors with new git versions

PiperOrigin-RevId: 856186746
Change-Id: I447a4a3ab65674da75a908816208a6fe377232ed
This commit is contained in:
Augustin Zidek
2026-01-14 06:31:36 -08:00
committed by Copybara-Service
parent d7ab550d1b
commit 2f40800a3a

View File

@@ -9,6 +9,11 @@
# https://github.com/google-deepmind/alphafold3/blob/main/WEIGHTS_TERMS_OF_USE.md
cmake_minimum_required(VERSION 3.28)
# This forces Git to use the 'files' backend for all FetchContent operations.
# This fixes libcifpp and dssp incompatibility with newer git versions.
set(ENV{GIT_CONFIG_PARAMETERS} "'init.defaultRefFormat=files'")
project(
"${SKBUILD_PROJECT_NAME}"
LANGUAGES CXX