Skip to content

Commit

Permalink
pin version of FetchContent to specific hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
diekleinekuh authored and diekleinekuh committed Jan 18, 2025
1 parent f80e53b commit 13db8ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ set (LIBRESSL_TESTS OFF CACHE BOOL "Build tests" FORCE)
set (ENABLE_ASM OFF CACHE BOOL "Enable assembly" FORCE)
FetchContent_Declare( libressl
URL https://github.com/libressl/portable/releases/download/v3.9.2/libressl-3.9.2.tar.gz
URL_HASH SHA256=7b031dac64a59eb6ee3304f7ffb75dad33ab8c9d279c847f92c89fb846068f97
)
FetchContent_MakeAvailable(libressl)

Expand All @@ -95,8 +96,7 @@ set(ZLIB_ENABLE_TESTS OFF CACHE BOOL "Build test binaries")
set(ZLIB_COMPAT ON CACHE BOOL "Compile with zlib compatible API" FORCE)
FetchContent_Declare(zlib-ng
GIT_REPOSITORY https://github.com/zlib-ng/zlib-ng.git
GIT_TAG 2.2.1
GIT_SHALLOW TRUE
GIT_TAG cbb6ec1d74e8061efdf7251f8c2dae778bed14fd # 2.2.3
)
FetchContent_MakeAvailable(zlib-ng)
disable_all_warnings(zlib)
Expand All @@ -111,8 +111,7 @@ add_library(ZLIB::ZLIB ALIAS zlib)

FetchContent_Declare( libpng
GIT_REPOSITORY https://github.com/pnggroup/libpng.git
GIT_TAG v1.6.43
GIT_SHALLOW TRUE
GIT_TAG 51f5bd68b9b806d2c92b4318164d28b49357da31 # 1.6.45
)
FetchContent_MakeAvailable(libpng)
set (PNG_LIBRARIES png_static)
Expand Down
3 changes: 1 addition & 2 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ set(BGDRTM_SRC
FetchContent_Declare(
rpmalloc
GIT_REPOSITORY "https://github.com/mjansson/rpmalloc.git"
GIT_SHALLOW TRUE
GIT_TAG "1.4.5"
GIT_TAG "e4393ff85585d91400bcbad2e7266c011075b673" # 1.4.5
)

FetchContent_Declare(cmake_git_version_tracking
Expand Down
1 change: 0 additions & 1 deletion libretro/sdl-libretro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ FetchContent_Declare(
ogg
GIT_REPOSITORY https://gitlab.xiph.org/xiph/ogg.git
GIT_TAG 7cf42ea17aef7bc1b7b21af70724840a96c2e7d0
#GIT_SHALLOW TRUE
PATCH_COMMAND "${CMAKE_COMMAND}" "-D" "PATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/patches/patch_ogg_min_required_version.patch" "-P" "${CMAKE_CURRENT_SOURCE_DIR}/patches/ApplyPatch.cmake"
EXCLUDE_FROM_ALL
)
Expand Down

0 comments on commit 13db8ba

Please sign in to comment.