Skip to content

Commit

Permalink
Fix #120 by commenting out the GIT_SHALLOW TRUE (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhackett authored Jun 28, 2024
1 parent bf19fa3 commit 7cd9038
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ FetchContent_Declare(
snmalloc
GIT_REPOSITORY https://github.com/microsoft/snmalloc
GIT_TAG 835ab5186325736ff5aa8ef53728970d1d74c3bc
GIT_SHALLOW TRUE
# per https://gitlab.kitware.com/cmake/cmake/-/issues/17770, do not use GIT_SHALLOW here
# or it will silently break new builds days later, once the commit hash above no longer
# matches a named branch, like main.
# Tracking a named branch with GIT_SHALLOW enabled is ok, however.
# GIT_SHALLOW TRUE
)

FetchContent_MakeAvailable(snmalloc)
Expand Down

0 comments on commit 7cd9038

Please sign in to comment.