Skip to content

Commit 99fceb6

Browse files
committed
Add zlib-ng submodule
Signed-off-by: Darby Johnston <[email protected]>
1 parent b231fe4 commit 99fceb6

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
[submodule "src/deps/minizip-ng"]
1111
path = src/deps/minizip-ng
1212
url = https://github.com/zlib-ng/minizip-ng.git
13+
[submodule "src/deps/zlib-ng"]
14+
path = src/deps/zlib-ng
15+
url = https://github.com/zlib-ng/zlib-ng.git

src/deps/CMakeLists.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ endif()
3535

3636
if(NOT OTIO_FIND_MINIZIP_NG)
3737
set(BUILD_SHARED_LIBS OFF)
38+
set(BUILD_TESTING OFF)
3839
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
3940
set(MZ_COMPAT ON)
4041
set(MZ_ZLIB ON)
42+
set(MZ_ZLIB_FLAVOR zlib-ng)
4143
set(MZ_BZIP2 OFF)
4244
set(MZ_LZMA OFF)
4345
set(MZ_ZSTD OFF)
@@ -47,13 +49,6 @@ if(NOT OTIO_FIND_MINIZIP_NG)
4749
set(MZ_OPENSSL OFF)
4850
set(MZ_LIBBSD OFF)
4951
set(MZ_ICONV OFF)
50-
set(MZ_FETCH_LIBS ON)
51-
set(MZ_FORCE_FETCH_LIBS ON)
52+
add_subdirectory(zlib-ng)
5253
add_subdirectory(minizip-ng)
53-
54-
# TODO This is a temporary workaround to find zlib-ng. For some reason
55-
# zlib-ng is not installing it's own CMake configuration files when built
56-
# by minizip-ng.
57-
install(FILES zlibng-config.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/cmake/zlibng)
58-
5954
endif()

src/deps/zlib-ng

Submodule zlib-ng added at 6d9f3dc

src/deps/zlibng-config.cmake

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)