From 4ff1680ffbc276671cdd0dac75a31ae68b1a3350 Mon Sep 17 00:00:00 2001 From: =?utf8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Sat, 20 Aug 2022 08:54:15 +0200 Subject: [PATCH] link against system libpng/libjpeg Forwarded: not-needed Last-Update: 2021-12-20 Last-Update: 2021-12-20 Gbp-Pq: Name 06-system-jpg+png.patch --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10aa3bf..8e76388 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -410,6 +410,9 @@ list(APPEND LIBRARIES fmt::fmt) #add_subdirectory(src/deps/json) #list(APPEND LIBRARIES nlohmann_json::nlohmann_json) +pkg_check_modules(JpegPng IMPORTED_TARGET libjpeg libpng) +list(APPEND LIBRARIES PkgConfig::JpegPng) + # Catch (if tests enabled) if (WITH_TESTS) -- 2.30.2