diff --git a/cmake/dependencies/CMakeLists.txt b/cmake/dependencies/CMakeLists.txt index e434b6d141..468f5c0f9b 100644 --- a/cmake/dependencies/CMakeLists.txt +++ b/cmake/dependencies/CMakeLists.txt @@ -62,11 +62,12 @@ if(BUILD_ZLIB) list(APPEND CMAKE_MESSAGE_INDENT " ") set(ZLIB_BUILD_EXAMPLES OFF) FetchContent_Declare( - zlib + ZLIB GIT_REPOSITORY "https://github.com/madler/ZLIB.git" GIT_TAG "v1.3.1" - PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/ZLIB.patch") - FetchContent_MakeAvailable(zlib) + PATCH_COMMAND git apply --ignore-whitespace + "${CMAKE_CURRENT_LIST_DIR}/../../patches/ZLIB-v1.3.1.patch") + FetchContent_MakeAvailable(ZLIB) list(POP_BACK CMAKE_MESSAGE_INDENT) message(CHECK_PASS "fetched") endif() diff --git a/patches/ZLIB.patch b/patches/ZLIB-v1.3.1.patch similarity index 100% rename from patches/ZLIB.patch rename to patches/ZLIB-v1.3.1.patch