Change dependency management
This commit is contained in:
13
3rdParty/zlib/CMakeLists.txt
vendored
Normal file
13
3rdParty/zlib/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0048 NEW)
|
||||
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
zlib
|
||||
GIT_REPOSITORY https://github.com/madler/zlib.git
|
||||
GIT_TAG v1.2.11
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
FetchContent_MakeAvailable(zlib)
|
||||
|
||||
add_library(ZLIB::ZLIB ALIAS zlibstatic)
|
||||
target_include_directories(zlibstatic INTERFACE ${zlib_BINARY_DIR} ${zlib_SOURCE_DIR})
|
||||
Reference in New Issue
Block a user