2023-08-01 02:29:45 +00:00
|
|
|
CPMAddPackage(
|
2024-02-11 03:09:28 +00:00
|
|
|
NAME zlib
|
|
|
|
VERSION 1.3.1
|
2024-02-12 03:10:54 +00:00
|
|
|
GITHUB_REPOSITORY "madler/zlib"
|
2024-02-11 03:09:28 +00:00
|
|
|
GIT_TAG v1.3.1
|
2023-08-01 02:29:45 +00:00
|
|
|
EXCLUDE_FROM_ALL
|
2024-02-11 03:09:28 +00:00
|
|
|
OPTIONS
|
|
|
|
"ZLIB_BUILD_EXAMPLES OFF"
|
2023-08-01 02:29:45 +00:00
|
|
|
)
|
|
|
|
|
2024-02-11 03:09:28 +00:00
|
|
|
if(zlib_ADDED)
|
|
|
|
if(SRB2_CONFIG_SHARED_INTERNAL_LIBRARIES)
|
|
|
|
add_library(ZLIB::ZLIB ALIAS zlib)
|
|
|
|
endif()
|
|
|
|
if(NOT_SRB2_CONFIG_SHARED_INTERNAL_LIBRARIES)
|
|
|
|
add_library(ZLIB::ZLIB ALIAS zlibstatic)
|
2023-08-01 02:29:45 +00:00
|
|
|
endif()
|
|
|
|
endif()
|