From 3d3e77cd3ef320516d0aaf2a7e46756022baf4a2 Mon Sep 17 00:00:00 2001 From: devgianlu Date: Sat, 1 Mar 2025 17:32:14 +0100 Subject: [PATCH] Meta: Add explicit vcpkg dependency for zlib zlib is already included transitively for other dependencies, include it explicitly and link it with `LibCompress`. --- Libraries/LibCompress/CMakeLists.txt | 3 +++ vcpkg.json | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Libraries/LibCompress/CMakeLists.txt b/Libraries/LibCompress/CMakeLists.txt index 349581b71d0..17cce020c7c 100644 --- a/Libraries/LibCompress/CMakeLists.txt +++ b/Libraries/LibCompress/CMakeLists.txt @@ -7,3 +7,6 @@ set(SOURCES serenity_lib(LibCompress compress) target_link_libraries(LibCompress PRIVATE LibCore LibCrypto) + +find_package(ZLIB REQUIRED) +target_link_libraries(LibCompress PRIVATE ZLIB::ZLIB) diff --git a/vcpkg.json b/vcpkg.json index 2102a2c493c..5b5b93a3360 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -122,7 +122,8 @@ "name": "vulkan-headers", "platform": "!android" }, - "woff2" + "woff2", + "zlib" ], "overrides": [ { @@ -196,6 +197,10 @@ { "name": "woff2", "version": "1.0.2#4" + }, + { + "name": "zlib", + "version": "1.3.1" } ] }