mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 05:41:42 +00:00
197243140f
update SDL2 to v2.30.0
18 lines
359 B
CMake
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()
|