summaryrefslogtreecommitdiffhomepage
path: root/third-party/zlib/CMakeLists.txt
blob: d7a5aec3b22a0354771270791feab343efea9e77 (plain)
1
2
3
4
5
6
7
8
9
FetchContent_Declare(
	zlib
	URL https://www.zlib.net/fossils/zlib-1.2.11.tar.gz https://ftp.ignore.pl/starshatter/mirror/zlib-1.2.11.tar.gz
	URL_HASH SHA1=e6d119755acdf9104d7ba236b1242696940ed6dd
	PATCH_COMMAND ${CMAKE_COMMAND} -D "PATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/1.zconf.patch" -P ${PATCH_SCRIPT}
	PATCH_COMMAND ${CMAKE_COMMAND} -D "PATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/2.includes.patch" -P ${PATCH_SCRIPT}
	PATCH_COMMAND ${CMAKE_COMMAND} -D "PATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/3.aliases.patch" -P ${PATCH_SCRIPT}
	PATCH_COMMAND ${CMAKE_COMMAND} -D "PATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/4.examples.patch" -P ${PATCH_SCRIPT}
	DOWNLOAD_EXTRACT_TIMESTAMP No)