link against system libpng/libjpeg
authorIOhannes m zmölnig <umlaeute@debian.org>
Thu, 3 Mar 2022 14:40:12 +0000 (15:40 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Thu, 3 Mar 2022 14:40:12 +0000 (15:40 +0100)
Forwarded: not-needed
Last-Update: 2021-12-20

Last-Update: 2021-12-20
Gbp-Pq: Name 06-system-jpg+png.patch

CMakeLists.txt

index debf0616ec6fcf5590f96e4bebf68e91d05a5f6e..eb30b664b5ecd93ff75a288128ee0502688f87e0 100644 (file)
@@ -391,6 +391,9 @@ else()
        message("Libsamplerate library found in " ${LIBRARY_SAMPLERATE})
 endif()
 
+pkg_check_modules(JpegPng IMPORTED_TARGET libjpeg libpng)
+list(APPEND LIBRARIES PkgConfig::JpegPng)
+
 # Catch (if tests enabled)
 
 if (WITH_TESTS)