Skip to content

Commit

Permalink
wrap with quotes and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed May 12, 2024
1 parent 3e23f3f commit c025eeb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMake/json-download.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ ExternalProject_Add(
PREFIX .

# We do not use 'GIT_REPOSITORY' as it doesn't support a shallow clone of a specific commit,
# this make the clone step very long, so we clone by ourselves
# this make the clone step very long, so we clone by ourselves (See https://gitlab.kitware.com/cmake/cmake/-/issues/17770).
# Adding detachedHead=false to avoid warnings like: "You are in 'detached HEAD' state..."
DOWNLOAD_COMMAND git clone -c advice.detachedHead=false --branch v3.11.3 https://github.com/nlohmann/json.git --depth 1 json
DOWNLOAD_DIR ${CMAKE_BINARY_DIR}/third-party/
DOWNLOAD_DIR "${CMAKE_BINARY_DIR}/third-party/"

# Override default steps with no action, we just want the clone step.
UPDATE_COMMAND ""
Expand Down

0 comments on commit c025eeb

Please sign in to comment.