From 988089445cc5feb00e8bcd153fd19f9b1db7c52c Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Wed, 9 Mar 2022 04:31:42 -0800 Subject: [PATCH] Use git hash for zstd vendor (#969) CMake ExternalProject_add recommends using a specific git hash with GIT_TAG because branches and tags can be updated to point to different references. https://cmake.org/cmake/help/latest/module/ExternalProject.html This switches zstd_vendor to a git hash. sqlite3_vendor and shared_queues_vendor don't need to be changed because they use URL and URL_MD5 instead. Signed-off-by: Shane Loretz --- zstd_vendor/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zstd_vendor/CMakeLists.txt b/zstd_vendor/CMakeLists.txt index 0819c337ee..e3d4a22a03 100644 --- a/zstd_vendor/CMakeLists.txt +++ b/zstd_vendor/CMakeLists.txt @@ -32,7 +32,7 @@ macro(build_zstd) # We need to configure the CMake command to build from there instead. ExternalProject_Add(zstd-${zstd_version} GIT_REPOSITORY https://github.com/facebook/zstd.git - GIT_TAG v${zstd_version} + GIT_TAG 10f0e6993f9d2f682da6d04aa2385b7d53cbb4ee # v${zstd_version} GIT_CONFIG advice.detachedHead=false # Suppress git update due to https://gitlab.kitware.com/cmake/cmake/-/issues/16419 # See https://github.com/ament/uncrustify_vendor/pull/22 for details