SRB2/thirdparty/cpm-zlib.cmake
Logan Aerl Arias 197243140f update SDL2 to v2.30.0
update SDL2 to v2.30.0
2024-02-11 22:33:08 -05:00

18 lines
359 B
CMake

CPMAddPackage(
NAME zlib
VERSION 1.3.1
GITHUB_REPOSITORY "madler/zlib"
GIT_TAG v1.3.1
EXCLUDE_FROM_ALL
OPTIONS
"ZLIB_BUILD_EXAMPLES OFF"
)
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)
endif()
endif()