link against system libpng/libjpeg
authorIOhannes m zmölnig <umlaeute@debian.org>
Wed, 2 Feb 2022 18:08:36 +0000 (19:08 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Wed, 2 Feb 2022 18:08:36 +0000 (19:08 +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 fe5a52eb7092cd65054402fb49ed6bd4413ab868..a066d3268c04d7f6f28eba4d852d7217a80cd86c 100644 (file)
@@ -387,6 +387,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)