link against system libpng/libjpeg
authorIOhannes m zmölnig <umlaeute@debian.org>
Thu, 23 Dec 2021 11:58:30 +0000 (12:58 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Thu, 23 Dec 2021 11:58:30 +0000 (12:58 +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 cbd2878a6170646b32bf2550ab247c0764d47ec3..ea955d044b397c7dbf47652a12881006539f18ac 100644 (file)
@@ -385,6 +385,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)